#include <stdio.h>
main() /*program which introduces keyboard input */
{
int number;
printf ("Type in a number \n");
scanf ("%d", &number);
printf ("The number you typed was %d\n", number);
}
I then try to compile with "gcc -Wall -Werror -Lm user_input.c"
but I am receiving an error. Any suggestions on how to fix my code?
main() /*program which introduces keyboard input */
{
int number;
printf ("Type in a number \n");
scanf ("%d", &number);
printf ("The number you typed was %d\n", number);
}
I then try to compile with "gcc -Wall -Werror -Lm user_input.c"
but I am receiving an error. Any suggestions on how to fix my code?
Comment