hi, im very new to programming so sorry if my question seems a bit stupid
i found a basic default code i wanted to try:
Code:
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 when i try to compile it it gives me this error:
Error: 1 actual argument expected for printf, had 2
the compiler says the problem is here:
Code:
printf( "you entered %d", this_is_a_number );
i don't understand why though. any kind of help will be useful