ooo
Hi
I am new to C, I have coped the following code from a book.
I used visaul C++ 2008 from Microsoft. the program is a console application.
I entered a integer from keyboard, but I can see any output on the console.
(the getchar () is just for the stop the screen, then I can see the results).
where is wroung?
Thanks for any helps!!
Jack
Code:
#include <stdio.h>
int main()
{
int k=1;
printf ("enter an integer \n" );
scanf("%d ", &k);
printf (" the entered integer is : %d \n ", k);
getchar ();
return 0;
}