【2007-11-30】部分C程序
c语言吧
全部回复
仅看楼主
level 1
一楼送给百度
2007年11月30日 08点11分 1
level 1
main(){ float x=2.5,y=4.7; int a=7; clrscr(); printf("\n%f",x+(a%3)*(int)(x+y)%2/4);}
2007年11月30日 08点11分 2
level 1
main(){ float x=3.5,y=2.5; int a=2,b=3; clrscr(); printf("%f",(float)(a+b)/2+(int)x%(int)y);}
2007年11月30日 08点11分 3
level 1
main(){ int a[10]; int i,max; clrscr(); for (i=0;i<10;i++) scanf("%d",&a[i]); /******compute the max number************/ max=a[0]; for(i=1;i<10;i++) if(a[i]>max) max=a[i]; /*******end of computer the max number***/ printf("%d",max);}
2007年11月30日 08点11分 4
1