#includeint main(){ int a,b,c,i; printf("输入三个整数:"); scanf("%d %d %d",&a,&b,&c); if(a>b) { i=b; b=a; a=i; } if(a>c) { i=c; c=a; a=i; } if(b>c) { i=c; c=b; b=i; } printf("这三个数从小到大分别是:%d %d %d",a,b,c); return 0;}
#includeint main() { int a=10,b; for(;a>0;a--){ for(b=1;b<=10-a;b++)printf(" "); for(b=1;b<=a-1;b++)printf("*"); printf("\n");} }
#includeint main(){ int a; int b; int d=10; printf ("请输入总路程与停留时间:"); scanf ("%d %d",&a,&b); if (a<=3) { printf("应付:%d",d+2*(b/5)); } else if(3
#includeint main() { int a;//重量 int b; scanf("%d %d",&a,&b); double c=(double)(a-b)*100/b; if(10 50) printf("超重!吊销身份证"); else printf("未超重"); return 0;}
#includeint main(){ int i,A,B,C,D,E,n,s; A=B=C=D=E=0; printf("输入总人数n和他们的分数:"); scanf("%d",&n); for(i=0;i