C programming Related Problem 02
Suppose, you want to know the grade of a marks which is A+ or not A+. Write a C program Code which takes an input from program and send a message to us.
Following Coding(Using if else case)
#include <stdio.h>
int main ()
{
int marks;
printf("Enter
the Number Please :");
scanf("%d", &marks);
if(marks>=80)
{
printf("You got A+");
}
else
{
printf("You didnot get A+");
}
return 0;
}
Comments
Post a Comment