2、>main(){charc1,c2;c1=getchar();printf("%c,%d",c1,c1);c2=c1-32;printf("%c,%d",c2,c2);}Sy3_4:#includemain(){intx;floaty;printf("enterx,y:");scanf("%d%f",&x,&y);printf("x+y=%.1f",x+y);}Sy3_5:#includemain(){floatpi,h,r,l,s,sq,vq,vz;pi=3.1
3、415926;printf("请输入圆半径r,圆柱高h:");scanf("%f%f",&r,&h);l=2*pi*r;s=pi*r*r;sq=4*pi*r*r;vq=4.0/3*pi*r*r*r;vz=pi*h*r*r;printf("圆周长为:%5.2f",l);printf("圆面积为:%5.2f",s);printf("圆球表面积为:%5.2f",sq);printf("圆球体积为:%5.2f",vq);printf("圆柱体积为:%5.2f",vz);}Sy3_6:#inclu
4、demain(){intx,y,t;printf("请输入x,y:");scanf("%d%d",&x,&y);if(xmain(){charc1,c2,c3;printf("pleaseinoutthreeletters:");c1=getchar();c2=getchar();c3=getchar();printf("%c",x);printf(
5、"%c",y);printf("%c",z);}Sy3_8:#include#includevoidmain(){floatx1,x2,x,a,b,c;printf("请输入系数a,b,c:");scanf(%f%f%f",&a,&b,&c);if(b*b-4*a*c>0)x1=[-b+sqrt(b*b-4*a*c)]/(2*a);x2=[--bsqrt(b*b-4*a*c)]/(2*a);printf("x1:%fx2:%f",x1,x2);elseif(b*b-
6、4*a*c=0)x=-b/(2*a);printf("x:%f",x);elseprintf(“x无实根:”);}