#include<stdio.h>
void main()
{
int marks;
printf("Enter your marks ");
scanf("%d",&marks);
if(marks<0 || marks>100)
{
printf("Wrong Entry");
}
else if(marks<50)
{
printf("Grade F");
}
else if(marks>=50 && marks<60)
{
printf("Grade D");
}
else if(marks>=60 && marks<70)
{
printf("Grade C");
}
else if(marks>=70 && marks<80)
{
printf("Grade B");
}
else if(marks>=80 && marks<90)
{
printf("Grade A");
}
else
{
printf("Grade A+");
}
}
Code Example |
---|
C :: Bootstrap textarea from |
C :: prime factorization in c |
C :: how to compareTo in java |
C :: Program to input and print array elements in c |
C :: doble puntero en c |
C :: typedef c struct |
C :: adjacency matrix representation maker |
C :: identifiers in c |
C :: how compress string in c |
C :: c concatenate and allocate string |
C :: c include delay |
C :: how to return array of char in c |
C :: pendu langage c |
C :: search sorted array c |
C :: getchar c |
C :: how to arrange a 2d array based on string length in c |
C :: gitlab ci heroku |
C :: integer in c |
C :: C float and double Output |
C :: Install valet-linux |
C :: How to send an array through a pipe |
C :: XAudio2 C |
C :: cocktail sort in c |
C :: ansi c write unsigned short to file |
C :: how to get out of function in c |
C :: extended euclidean algorithm to find x and y |
C :: Dynamic Memoray alocation For 2D |
C :: suma de digitos |
C :: networkx remove attributes |
C :: Example of header file c |