编写一个程序,根据输入的 3 个成绩,计算平均分。
a=float(input("成绩1:"))
b=float(input("成绩2:"))
c=float(input("成绩3:"))
AVG=(a+b+c)/3
print("平均分为:"+str(AVG))
运行代码:
编写一个程序,根据输入的 3 个成绩,计算平均分。
a=float(input("成绩1:"))
b=float(input("成绩2:"))
c=float(input("成绩3:"))
AVG=(a+b+c)/3
print("平均分为:"+str(AVG))
运行代码: