#include <iostream> using namespace std; int main () { // an array with 5 rows and 2 columns. int a[5][2] = { {0,0}, {1,2}, {2,4}, {3,6},{4,8}}; // output each array element's value for ( int i = 0; i < 5; i++ ) for ( int j = 0; j < 2; j++ ) { cout << "a[" << i << "][" << j << "]: "; cout << a[i][j]<< endl; } return 0; }
Saturday, 7 May 2016
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
#include <iostream> using namespace std ; int main (){ int n , i ; float num [ 100 ], sum = 0.0 , average ; ...
-
In this program we will learn how to find address and size of variable. The code is given below. //Code starts #include<iostr...
-
#include<iostream> #include<conio.h> using namespace std; int a[10]; void binary(int p, int r, int data) { ...
-
#include<iostream> #include<conio.h> using namespace std; struct node{ int data; node *left=NULL; node *right=NULL; ...
-
In this program we will learn how to take exponential of a variable e.g 10^2. The code is given below. //Code starts #include<i...
-
In this program we will create, print, delete and insert data in array using methods of data structures. Program: #include<iostr...
-
//Program starts #include<iostream> #include<conio.h> using namespace std; int main() { int n=5,a[n],j,key; for(int ...
-
In this program we will learn, how to call a structure inside a function and insert its values outside the main().. The code is given belo...
-
#include<iostream> #include<conio.h> using namespace std; int main() { int x; float rem; cout<<"Enter n...
-
//Program starts #include<iostream> #include<conio.h> using namespace std; int main() { int n=5,a[n],b,min=0; for(in...
All posts
-
►
2019
(1)
- ► 03/10 - 03/17 (1)
-
►
2017
(32)
- ► 07/02 - 07/09 (8)
- ► 05/14 - 05/21 (3)
- ► 03/05 - 03/12 (1)
- ► 02/26 - 03/05 (6)
- ► 02/19 - 02/26 (2)
- ► 02/12 - 02/19 (12)
-
▼
2016
(36)
- ► 10/23 - 10/30 (1)
- ► 06/12 - 06/19 (4)
- ► 05/29 - 06/05 (1)
- ► 05/22 - 05/29 (1)
- ► 05/15 - 05/22 (1)
- ► 05/08 - 05/15 (11)
-
▼
05/01 - 05/08
(8)
- C++ Program of Two Dimensional Array
- C++ Program of Array to Sort 10 Integers in Descen...
- C++ Program of Array to Find How Many Integers are...
- C++ Program of Array
- C++ Program to find ASCII Code
- C++ Program of Starric using for loop
- C++ Program of sorting values in array
- C++ code to print right triangle shape using neste...
- ► 04/24 - 05/01 (9)
I Am
Welcome
Tags
2D array
6 in 1
array
array program
ASCII
binary
binary search
bubble sort
c++
C++ code to print right triangle shape using nested for loops
c++ program
C++ Program of Array to Calculate Average of Numbers Using Arrays
C++ Program of Array to Calculate Sum and Average of given Numbers
C++ Program of Array to Find How Many Integers are Equal or Greater than 10
C++ Program of Array to Sort 10 Integers in Descending Order
C++ Program Of Calculator
C++ Program of detecting a keypress and ASCII code
c++ program of for loop
C++ Program of Multiplying Two Matrices using 2D Array
C++ Program of sorting values in array
C++ Program of Starric using for loop
C++ Program of Two Dimensional Array
C++ Program to add two matrix using 2-D arrays
C++ Program to Find Even and Odd Elements in Array
C++ Program to Find Greatest Common Divisor (GCD) of two numbers
C++ Program to Find Max and Min Number in Array
C++ Program to Find Reverse of Number
C++ program to find the Area and Perimeter of a Rectangle:
C++ Program to Sort Distorted Array
calculator
circle
circular queue
class
creation
deletion
even odd
example program
exponential
for loop
function
functions
GCD Program
hero formula
inheritance
insertion
insertion sort
linked list
nested for loop
oop
pointer
polymorphism
prime number
prime number program in c++
printing
program
queue
recursion
recursive function
reverse
Reverse of Number
selection sort
sequential search
sort
stack
starric
structure
template
Trees
triangle
two dimensional array
0 comments:
Post a Comment