Professional Documents
Culture Documents
Revision 7nested Loops
Revision 7nested Loops
Revision 7nested Loops
* ********** * 0
** ********* *** 01
*** ******** ***** 012
**** ******* ******* 0123
***** ******
********* 01234
****** ****
******* *** *********** 012345
******** ** ************* 0123456
********* *
1 0 0 0 0 0 1 2 3 4
0 1 0 0 0 0 5 6 7 8
0 0 1 0 0 0 9 10 11 12
0 0 0 1 0 0 13 14 15 16
0 0 0 0 1 0
0 0 0 0 0 1
a-
#include <iostream.h>
int main ()
{
int n=0;
}
n++;
cout<< endl
}
=======================================================================
b-
#include <iostream.h>
int main ()
{
int n=1 , j=1;
}
n++;
j=j+4;
cout<< endl
}
c-
#include <iostream.h>
int main ()
{
int i=1;
cout<< endl
}