CodePudding user response:
You need to bring the if statement in a for loopCodePudding user response:
#includeInt main () {
int i;
for(i=1; i<=100; I++) {
Printf (" % d ", I);
If (I % 6==0) {
printf("\n");
}
}
return 0;
}
CodePudding user response:
The judge I % 6 judgment on the loopCodePudding user response:
Thank you upstairs, the guidance of ahCodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html