Write a program to find whether your percentage is more than 75.00 or not. you have 5 subjects to study in python
Answers
Answered by
0
Answer:
The program accepts user input using the input function. Next, run loop till the entered number using the for loop and range() function. Next, calculate the sum using a sum = sum + current number formula. At last, after the loop ends, calculate the average using average = sum / n .
Answered by
7
Answer:
Hi...
Explanation:
M1=eval(input("enter the marks"))
M2=eval(input("enter the marks"))
M3=eval(input("enter the marks"))
M4=eval(input("enter the marks"))
M5=eval(input("enter the marks"))
Sum=M1+M2+M3+M4+M5
Tot=eval(input("enter the total marks of 5 subjects")) # for eg :if out of 100 then total=500
Percentage =(Sum/Tot) *100
if Percentage >=75.00:
print("you have more than 75%")
else:
print("you have less than 75%")
Hope it helps you
Please mark brainliest
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Environmental Sciences,
4 months ago
Math,
8 months ago