题解 | #KiKi算期末成绩#
KiKi算期末成绩
https://www.nowcoder.com/practice/4ef07b4f80fc4027a4b90e2245f8f637
#include <stdio.h>
int main() {
int experiment, behave, process, exam;
float total = 0;
scanf("%d %d %d %d", &experiment, &behave, &process, &exam);//输入成绩
total = 0.2 * experiment + 0.1 * behave + 0.2 * process + 0.5 * exam;//计算总分
printf("%.1f\n", total);//打印输出
return 0;
}
C语言基础 文章被收录于专栏
里面较为详细的介绍了c语言的相关用法和有关题目。


查看25道真题和解析