Program To CHECK THE GRADE
Program:-
#include
int main()
{
int marks;
char grade;
printf("\n Enter marks");
scanf("%d",&marks);
if(marks>75)
{
grade='A';
printf("\n the grade is %c",grade);
}
else if((marks>70)&&(marks<=75))
{
grade='B';
printf("\n the grade is %c",grade);
}
else if((marks>60)&&(marks<=70))
{
grade='C';
printf("\n the grade is %c",grade);
}
else if((marks>50)&&(marks<=60))
{
grade='D';
printf("\n the grade is %c",grade);
}
else
{
printf("\n Fail");
}
}
Sample output:
What is the Software to start coding and development using C Programming Langauge?
Download Dev C++ for development and coding