2684 - 总分平均分

通过次数

0

提交次数

0

时间限制 : 1 秒 内存限制 : 128 MB

小明期末考语文得97分,数学得98分,英语得83分,总分是多少?平均是多少(保留一位小数,)

题目输入

题目输出

第一行总分

第二行平均分(保留一位小数

输入/输出样例

输入格式


                        

输出格式


                        

C++解答

#include<bits/stdc++.h>
using namespace std;
int main()
{
        float a,b,c,s=0;
        a=97;b=98;c=83;
        s=a+b+c;
        cout<<s<<endl;
        cout<<fixed<<setprecision(1)<<s/3;
}