#include
int main()
{
float &a,&b,&c,&d;
float e;
printf("输入平时成绩,期中成绩,期末上机成绩,期末成绩");
scanf("%f%f%f%f",a,b,c,d );
e=a*0.1+b*0.2+c*0.21+d*0.49;
printf("总评成绩是%f",e);
return 0;
}
#include
int main()
{
float &a,&b,&c,&d;
float e;
printf("输入平时成绩,期中成绩,期末上机成绩,期末成绩");
scanf("%f%f%f%f",a,b,c,d );
e=a*0.1+b*0.2+c*0.21+d*0.49;
printf("总评成绩是%f",e);
return 0;
}
scanf("%f%f%f%f",a,b,c,d );
scanf("%f%f%f%f",&a,&b,&c,&d );