Program to display marks cadre

Program to display marks cadre: In this post we will use if-else statement to display complements.

Code for program to display marks cadre

#include<stdio.h>
#include<conio.h>
int main ()
{
int marks;
printf("Enter the marks:");
scanf("%d", &marks);
if(marks>=90)
{
printf("Marks is Outstanding");
}
else if(marks>=80 && marks<90)
{
printf("Marks is Excellent");
}
else if(marks>=60 && marks<80)
{
printf("I Class");
}
else if(marks>=50 && marks<60)
{
printf("Pass");
}
else
{
printf("Fail");
}
return 0;
}

Output

Enter the marks:95
Marks is Outstanding

Read: Program to print eligibility to vote In C


If You Like This Page Then Make Sure To Follow Us on Facebook, G News and Subscribe Our YouTube Channel. We will provide you updates daily.
Shares
facebook sharing button Share
twitter sharing button Tweet
whatsapp sharing button Share
telegram sharing button Share
pinterest sharing button Pin

Leave a Comment