求大佬解答
uj5u.com熱心網友回復:
這是送分題
#include<stdio.h>
int main()
{
float ach,hwork,test,post,mid,exper,final;
printf("請輸入各項分數\n\n(作業成績 單元測驗 討論發帖 期中成績 實驗 期末成績)\n\n");
scanf("%f %f %f %f %f %f",&hwork,&test,&post,&mid,&exper,&final);
ach = (hwork+post)*0.05 + (test+mid)*0.15 + exper*0.1 + final*0.5;
printf("C語言課程總成績:%.2f\n",ach);
return 0;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/268734.html
標籤:C++ 語言
