ad

Tuesday, March 4, 2025

C Program to find grade of a student Exam program code

                                      C Program 

C Program  to find grade of a student  Exam  program code


Q1) . C Program  to find grade of a student code 

Example :-

#include<stdio.h>
#include<conio.h>
void main()
{
int marks;
clrscr();
printf("Enter Marks");
scanf("%d",&marks);

if((marks<100)&&(marks>70))
{
printf("Destinction");
}


else if((marks>60)&&(marks<69))
{
printf("First Class");
}
else if((marks>=50)&&(marks<59))
{
printf("Second Class");
}
else if((marks>=40)&&(marks<=49))
{
printf("Third Class");
}
else{
printf("Fail");
}
getch();
}


Q 1). C Program  to find grade of a student code 

Explanation:-

  1. 100 To 70  :- destinction
  2. 60  To  69  :- First Class
  3. 50 To  59   :- Second Class
  4. 40 To  49   :- Third Class
  5. fail

Q 1) .C Program  to find grade of a student code. 

Program Output :-Run 1 Time

Enter Marks :- 98
Destinction

Q1 ). C Program  to find grade of a student code 

Program Output :-Run 2 Time

Enter Marks :- 45

Third Class


Related Post :-

Project home page html and CSS

No comments:

Post a Comment