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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started