revised yet again, new code is
int j;
int i=0;
cout<<"cols="<<cols<<endl;
cout<<"rows="<<rows<<endl;
cout<<endl;
do{
j=0;
cout<<"Number at position...
Type: Posts; User: Creatlv3
revised yet again, new code is
int j;
int i=0;
cout<<"cols="<<cols<<endl;
cout<<"rows="<<rows<<endl;
cout<<endl;
do{
j=0;
cout<<"Number at position...
i revised my code to
int j;
int i=0;
cout<<"cols="<<cols<<endl;
cout<<"rows="<<rows<<endl;
cout<<endl;
do{
j=0;
cout<<"Number at position "<<i<<","<<j<<" is ";
assuming cols=2 and rows=3
([0,0][0,1]
[1,0][1,1]
[2,0][2,1])
int i=0;
cout<<"cols="<<cols<<endl;
cout<<"rows="<<rows<<endl;
cout<<endl;