Programming Code Examples

Write a program to find grade of a student given his marks using switch in C1 min read

Given below is a c program to check student result using if else condition.

Condition for declaring a student as pass or fail is given below:

  • For, percentage >= 40 : Pass
  • For, percentage < 40 : Fail




C program to check whether a student is pass or fail:

Output:

Problem: Write a program to find grade of a student given his marks using switch

Solution:

Add comment