
CodePudding user response:
Just want to output 111?If want to output 111, set the initial value of each for loop is 1, you can refer to the following code:
# include & lt; stdio.h>
Int main () {
Int I, j, k;
Print (" I j k ");
For (I=1; i <2; I + +)
For (j=1; J & lt; 2; J + +)
For (k=1; K & lt; 2; K + +)
Printf (" % d % d % d ", I, j, k);
return 0;
}