Just started learning C and I have a problem with the scanf function. Every time I enter a number in the console, it will be printed right under the input. The program still works, but it is a little bit annoying. (I am using CLion from JetBrains)
int main()
{
int x;
printf("Number: ");
scanf("%d", &x);
printf("Your number is %d!", x);
}
This is the output:
Number:15
15
Your number is 15!
Process finished with exit code 0