7、#include"stdio.h"Рmain()Р{Рint i=0,j=0,k=0,m;Рfor(m=0;m 4;m++)Рswitch(m)Р{case 0:i=m++;Рcase 1:j=m++;Рcase 2:k=m++;Рcase 3:m++;Р}Рprintf("\n%d,%d,%d,%d",i,j,k,m);Р}Р运行结果:0,1,2,5 8、main()Р{Рint m=5;Рif(m++5)printf("%d\n",m);Рelse printf("%d\n",m--);Р}Р运行结果:6 9、#include"stdio.h"Рmain()Р{Рint j;Рfor(j=0;j 10;j++)Р{if(j%2==0)continue;Рprintf("%d",j);Р}Р}Р运行结果:13579Р三、编程题Р1、从键盘输入3个整数,输出其中最大数。Р答:#include stdio.h void main()Р{Рint a,b,c,max;Рprintf("Please input 3integers:\n");Рscanf("%d%d%d",&a,&b,&c);Рmax=a;Рif(b a)max=b;Рif(c x)max=c;Рprintf("Max=%d",max);Р}Р2、由36块砖,共36人搬,成年男子一次搬4块砖,成年女子一次搬3块砖,儿童两个人抬1块砖,恰好一次全部搬完,编程求出成年男子、成年女子和儿童各有多少人?Р答:#include stdio.h void main()Р{Рint x,y,z;Рfor(x=0;x=36/4;x++)Рfor(y=0;y=36/3;y++)Р{Рz=36-x-y;Рif(4*x+3*y+z/2==36&&z%2==0)Рprintf("x=%d,y=%d,z=%d",x,y,z);Р}Р}