I\'m a complete beginner in C programming and I have a question. I\'ll bring a simple code as an example:
#include int main( void ) { int x
Actually scanf doesn't emit prompt and if you include any thing other than format specifier then you have to enter input inexactly that way that's why you are required to press ENTER again.
scanf
Change this :
scanf( "%i\n", &x ); // ^ // | remove extra \n
to this:
scanf( "%i", &x );