Back To C++ Double Dimensional Arrays Index
//program to input 3x3 matrix and then display the matrix using for loop example of two dimensional array #include
#include
void main() { int a[3][3]; int i,j; clrscr(); for(i=0;i<3;i++) { for(j=0;j<3;j++) { cout<<"enter element at ["<
>a[i][j]; } } cout<<"\ndisplaying the matrix\n"; for(i=0;i<3;i++) { for(j=0;j<3;j++) { cout<