Have a Read!

Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!

Tuesday, January 25, 2011

C PROGRAM FOR SIMPLE SCANF

The following code represents the simple use of “scanf” to get user input.
#include <stdio.h>
int main () {
int x;
printf("PLEASE ENTER A NUMBER\n");
scanf("%d",&x);
printf("%d\n",x);
return 0;
}

No comments:

Post a Comment

Related Posts with Thumbnails