Enter the mark of the student 

If the mark more than 60 'A' grade is alloted
if the mark is less than 60 'B' grade is alloted

#include <stdio.h>
int main()
{
    int x; //The variable is declared as integer
    char grade; //The variable is declared as character
    printf("Enter marks: ");
    scanf("%d",&x);//Input the mark
    grade=(x>60?'A':'B'); //Comparison operator is used
    printf("%c",grade); //Print the grade
}