Computer Science, asked by ashima511, 18 days ago

Calculate total mark s of any 5subjects (each subject will be of 20 marks) and by using if else ladder print the following message based on the total marks: i."sorry you are fail" if the total marks less than 30. ii. If the marks or less than or equal to 50 display the message "Passed with C grade". iii. If marks are greater than 50 and less than or equal to 70 .then display message "Passed with B grade". iv. If none of the conditions evaluates to true then display message "Passed with A grade". *To find whether a given character is vowel or not(using if else) Do the following programs in Small basic only




class6
who will give best and short answer i will mark brainlist​

Answers

Answered by JenniferW
1

Answer:

Explanation:

First=int(input("Enter marks of subject 1"))

Second=int(input("Enter marks of subject 2"))

Third=int(input("Enter marks of subject 3"))

Fourth=int(input("Enter marks of subject 4"))

Fifth=int(input("Enter marks of subject 5"))

Total=First + Second + Third + Fourth + Fifth

if total<30:

print("Sorry, you havr failed")

else if total<50:

print("You have passed with a C grade")

else if total<70:

print("You have passed with a B grade")

else:

print("You have passed with a A grade")

Similar questions