电信学院 机械二班 田文博 学号:0613100215 1
5#include 〈stdio
h〉 void main() { printf("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n"); printf(" Very good
\n"); printf(”* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n"); }1
6#include void main() { float max(float x,float y,float z); float a,b,c; printf("请分别输入 a,b,c:\n"); scanf("%f,%f,%f”,&a,&b,&c); printf(”max=%f",max(a,b,c)); } float max(float x,float y,float z) { float m,n; m=x>y
x: y; n=m>z
m: z; return(n); }3
6 #include void main() { char c1=’a’,c2=’b’,c3=’c’,c4=’\101’,c5=’\116’; printf(“a%c b%c\tc%c\tabc\n”,c1,c2,c3); printf(“\t\b%c %c\n”,c4,c5); } 3
1 #include 〈stdio
h〉 void main() { double x=2
7,z;int a=7; z=x+a%3*(int)(x+y)%2/4;printf("该表达式的值为:%f",z); }3
2#include void main() { int a=2,b=3; fl