Computer Science, asked by manandhall480, 8 months ago

write a python programe to input name, marks in three subjects and find the total marks and percentage

Answers

Answered by princerayamwar8
1

Answer:

a=int(input("Marks In English Core:"))

b=int(input("Marks In Hindi/Mathematics:"))

c=int(input("Marks In Physics:"))

d=int(input("Marks In Chemistry:"))

e=int(input("Marks In Computer Science/Biology:"))

f=(a+b+c+d+e)*100/500.

print("Your Marks In Percentage Is",f,"%")

if f>=33:

Explanation:

if it is helpful so plz mark me as brainilist

and if you wont you can follow me on Instagram my Instagram id : princerayamwar7

Answered by Equestriadash
12

choice = "Yes"

while choice == "Yes":

   x = float(input("Enter the marks of the first subject: "))

   y = float(input("Enter the marks of the second subject: "))

   z = float(input("Enter the marks of the third subject: "))

   total = x + y + z

   print(total, "is your total mark.")

   by = float(input("Enter the total marks of the examination: "))

   p = (total/by)*100

   print(p, "is your percentage.")

   print()

   choice = input("Would you like to go again? [Yes/No]: ")

   print()

I've added a while loop as well, in case the user would like to go again.

A while loop is an iteration statement, that does repeated checking based upon a given situation.

As long as the given condition is true, the program will keep running.

This statement is dependant on Boolean values.

Boolean values are those that result to either "True" or "False".


Equestriadash: Thanks for the Brainliest! ♥
Similar questions