C Program to find Student Grade

In this tutorial you will learn about the C Program to find Student Grade and its application with practical example.

C Program to find Student Grade

In this tutorial, we will learn to create a C program that will find the Student Grade in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • Conditional Statements in c programming.

Algorithm:-

Program to find Student Grade.

In this program, we will first take the marks of five subjects from the user. After taking the input, we will add all the marks and divide them by 5″ to get the percentage of the marks. Then we will print the grade of the students using the conditional statements.

Below is an example of the total, percentage, and grade.

With the help of this program, we can find the grade of the student.

Program Code:-

 

Output:-

In the above program, we have first initialized the required variable.

  • EN, CH, CM, PH, MT = it will hold the input value of the numbers.
  • TOT = it will hold the float value for the total marks.
  • PER = it will hold the float value for the percentage.

Taking the input marks of the five subjects.

In this section of the code of the program, we will calculate the total of the marks and the percentage.

Printing the grade of the student according to the percentage.

In this tutorial we have learn about the C Program to find Student Grade and its application with practical example. I hope you will like this tutorial.