int main()
{
int r, c;
r = getchar();
c = getchar();
putchar(r);
putchar(c);
printf("
");
return(0);
}
After it reads in r
, the program outputs r
and quits. I want it to ask for c
and input it but how come it doesnt do that?