Program To Find Grade of a Student Of using Percentage

#include<conio.h>

#include<stdio.h>

void main()

{

float a;

clrscr();

printf("Enter the value of percentage");

scanf("%f",&a);

if(a>80)

printf("\n honour");

else

if(a>70)

printf("\n 1st division");

else

if(a>60)

printf("\n 2nd division");

else

if(a>=40)

printf("\n 3rd division");

else

if(a<40)

printf("\n fail");

getch();

}

Output

Enter the value of percentage=90

honour

Enter the value of percentage=30

fail

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online