D
devoreband
hey i wrote all my code but i need to print out only the even numbers
so is there any predefined function i can use or what can structure i
should be following?
........
16 for(int r = 0; r < 10; r++) {
17 for(int c = 0; c < 10; c++) {
18 cout << setw(5) << setfill(' ') << r*c;
19 } // end for c
20 cout << endl;
21 }// end for r
22
.........
( i thought i could make some change on line 18 so that i could get
the program worked as i would like it to; i am not sure if i am right)
so is there any predefined function i can use or what can structure i
should be following?
........
16 for(int r = 0; r < 10; r++) {
17 for(int c = 0; c < 10; c++) {
18 cout << setw(5) << setfill(' ') << r*c;
19 } // end for c
20 cout << endl;
21 }// end for r
22
.........
( i thought i could make some change on line 18 so that i could get
the program worked as i would like it to; i am not sure if i am right)