FREE TUTORIALS ON C programming

Saturday, January 25, 2014

#include<stdio.h>

int main()



{


int a;

scanf("%d",&a);  //read a integer from stdin

printf("%d",a);  //prints to the console

fflush(stdin); //flushes the carriage return we press after entering the integer


getchar();  //wait for a keyboard input


return 0;



}
11:50 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search