MY CODE:
#include<stdio.h>
char main()
{
    char g1,g2,g3;
    printf("Enter the grade of student 1: ");
    scanf("%c",&g1);
    printf("\nEnter the grade of student 2: ");
    scanf("%c",&g2);
    printf("\nEnter the grade of student 3: ");
    scanf("%c",&g3);
    printf("%c%c%c",g1,g2,g3);
   
    return 0;
}
OUTPUT:
Enter the grade of student 1: A
Enter the grade of student 2: Enter the grade of student 3:
//I am getting a line break and couldn't enter the value of student 2 and the cursor moves to student 3!!
 
     
     
    