in c++ i could use cin.get();
but not in C

Code: Select all
#include <stdio.h>
int main()
{
int this_is_a_number;
printf( "Please enter a number: " );
scanf( "%d", &this_is_a_number );
printf( "You entered %d", this_is_a_number );
getchar();
}
and this says that it is wrong

it is in C it says smthing is wrong in printf line :S
Code: Select all
#include <stdio.h>
int main()
{
printf( "I am alive! Beware.\n" );
getchar();
return 0;
}