OUTPUT display should be:
0 1 2 3
4 5 6
7 8
9
is there any way that i can print new line without using the if statement?Code:int x=0; for(x=0;x<=9;x++) { printf("%d",x); if(x==3||x==6||x==8) { printf("\n"); } }
or can i have the same output using only loops.. thats my solution with if's i can't get it only with loops.
or maybe im on the right track?