Answers for "simple python program to calculate total marks"

0

simple python program to calculate total marks

print("Enter marks of five subjects:")
S1=float(input())
S2=float(input())
S3=float(input())
S4=float(input())
S5=float(input())

#Calculate total, average and percentage one by one
total = S1 + S2 + S3 + S4 + S5
average = total/5.0
percentage = (total / 500.0) * 100

#Print the result
print("Total marks =", total)
print("Average marks =", average)
print("Percentage = ", percentage)
Posted by: Guest on September-04-2020

Code answers related to "simple python program to calculate total marks"

Python Answers by Framework

Browse Popular Code Answers by Language