Question: Write a C program to accept marks scored in a subject and print the result as below. If the marks scored is less than 35

Write a C program to accept marks scored in a subject and print the result as below. If the marks scored is less than 35 print result as fail, if the marks scored is 35 and above and less than 50 print the result as III class, if the marks is 50 and above and less than 60 print result as II class, if the marks is 60 and above and less than 85 print result as I class and if the marks is 85 and above and less than 100 print the result as distinction. [Use if-else statement] Logic to do this program Step 1: Get the five subject mark from the user and calculate the sum and average and then check for the condition like if(average>=35 && average<50) print (Third class) Like the above coding continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!