Array 2 Dimensi

Example 1:
#include <iostream.h>
#include <conio.h>

main()
{

//initial
int array[2][3] = {/*element in row 1*/ {10, 20, 30},/*element in row 2*/{11, 21, 31 }
};
int row,col;

clrscr();

for (row=0;row<2;row++)
{
for (col=0;col<3;col++)
{
cout <<">
}
cout <<"\n\n";
}

getch();
}

Posted in . Bookmark the permalink. RSS feed for this post.

One Response to Array 2 Dimensi

Search

Support by Blogger ITN | Converted by LiteThemes.com