(1) int main() { int x,y; x=5; y=10*x+2; printf("x=%d y=%d\n",x,y); x++; y=(10*x+2)/10; printf("x=%d y=%d\n",x,y); } (2) int main() { int x,x2,x3; for (x=0;x<4;x++) { x2=x*x+2; x3=(x2*2+3)%5; printf("P1 %3d %5d %7d\n",x,x2,x3); } printf("P2 %3d %5d %7d\n",x,x2,x3); } (3) int main() { int x,y; for (x=1; x<=6; x++) { for (y=1; y<7; y++) { printf("%3d",x); } printf("\n"); } } (4) int main() { int x; for (x=1; x<=6; x++) { for (x=1; x<7; x++) { printf("%3d",x); } printf("\n"); } } (5) int main() { int x,y,z; z=0; for (x=1; x<=6; x++) { for (y=1; y<7; y++) { printf("%3d",z); z=z+1; } printf("\n"); } } (6) int main() { int n,i,j; int k1,k2; n=8; for (i=0;i