วันศุกร์ที่ 30 มกราคม พ.ศ. 2558

หาค่าเฉลี่ย 5 จำนวน.py

a = int(input("Num 1:"))
b = int(input("Num 2:"))
c = int(input("Num 3:"))
d = int(input("Num 4:"))
e = int(input("Num 5:"))
t = 0
t = a+b
t = t+c
t = t+d
t = t+e
t = t/5
print(t)

ไม่มีความคิดเห็น:

แสดงความคิดเห็น