#include
int main(){
int a,b,c;
scanf(\"%d%d%d\\n\",&a,&b,&c);
printf(\"%d %d %d\",a,b,c);
return 0;
}
A white character in scanf format matches a sequence of white characters in the input until a non-white character.
Newline is a white character and this explains the behavior of your program. Meaning that if your scanf format terminates by a newline, it does not finish until it sees an additional non-blank character after the last parsed input.