Here is my code
#include <stdio.h>
#include <stdlib.h>
int main(){
char c,d;
c=getchar();
d=getchar();
printf("%c %c",c,d);
return 0;}
here i asked for 2 inputs but it is stopping after taking one input. I mean if i write only one character and press enter it is just showing only that character. Not asking any further inputs.
But when i am giving two inputs at the same time and then press enter it is showing both.