Sunday, June 16, 2013

C programming language provide functions that can be use in creating programs.
scanf is the function use to accept data from user either of data type used.

Source:
#include<stdio.h>
main()
{
int num;
clrscr();
printf("Enter number to display:");
scanf("%d", &num);
printf("This is the number you type: %d.",num);
getch();
}

Output of the Program:




Categories:

0 comments :

Post a Comment