题解 | #总成绩和平均分计算#
总成绩和平均分计算
https://www.nowcoder.com/practice/0fa5132c156b434da4347ad051c4be22
#include <stdio.h> int main() { double a,b,c,sum,equ; scanf("%lf%lf%lf",&a,&b,&c); sum=a+b+c; equ=sum/3; printf("%.2lf %.2lf",sum ,equ); return 0; }
总成绩和平均分计算
https://www.nowcoder.com/practice/0fa5132c156b434da4347ad051c4be22
#include <stdio.h> int main() { double a,b,c,sum,equ; scanf("%lf%lf%lf",&a,&b,&c); sum=a+b+c; equ=sum/3; printf("%.2lf %.2lf",sum ,equ); return 0; }
相关推荐