#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d\n",a+b+c);
int a,b;
scanf("%d,%d",&a,&b);
printf("%d\n",a+b);
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
printf("总分是%d分",a+b+c+d);
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
printf("--------------------\n");
printf("语文:%d分\n",a);
printf("数学:%d分\n",b);
printf("英语:%d分\n",c);
printf("综合:%d分\n",d);
printf("总分:%d分\n",a+b+c+d);
printf("--------------------");
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
printf("%d\n",(2*(a+b) + 3*(c-d))/2);
double x,y,z;
scanf("%lf%lf%lf",&x,&y,&z);
printf("%.1f",(x+y+z)/2);
int m;
scanf("%d\n",&m);
printf("%.2f",m+(m*0.03-m*0.03*0.2));
int a,b;
scanf("%d,%d",&a,&b);
printf("%d*%d=%d",b,a,a*b);
int a,b;
scanf("%d,%d",&a,&b);
printf("%d+%d=%d\n",a,b,a+b);
printf("%d*%d=%d",a,b,a*b);
double x,y,z;
scanf("%lf+%lf+%lf=",&x,&y,&z);
printf("%.1f\n",x+y+z);
int x;
float y;
int z;
scanf("%d %f %c",&x,&y,&z);
printf("%d %.2f %c",x,y,z);
return 0;
}
标签:lf,%.,+%,int,scanf,printf,10.10 From: https://blog.51cto.com/u_15758636/5744746