Dear all,
I have done this programming, but i want the ouput of i is increasing i++, but i dont know how to do. Can somebody help me?
[code=cpp]
# include<iostrea m.h>
#include<conio. h>
void main()
{
int a[6][6] ;
int i, j;
int clrscr();
{ for(i=0;i<6;i++ )
for(j=0;j<6;j++ )
{
cout<<"[i][j]";
cin>>a[i] [j] ;
}
}
for(i=0;i<4;i++ )
{
cout<<endl;
for(j=0;j<4;j++ )
cout<<a[j][i]<<"\t";
}
getch();
}
[/code]
I have done this programming, but i want the ouput of i is increasing i++, but i dont know how to do. Can somebody help me?
[code=cpp]
# include<iostrea m.h>
#include<conio. h>
void main()
{
int a[6][6] ;
int i, j;
int clrscr();
{ for(i=0;i<6;i++ )
for(j=0;j<6;j++ )
{
cout<<"[i][j]";
cin>>a[i] [j] ;
}
}
for(i=0;i<4;i++ )
{
cout<<endl;
for(j=0;j<4;j++ )
cout<<a[j][i]<<"\t";
}
getch();
}
[/code]
Comment