scanf एक function है यह c language में एक प्री डिफाइन function है जिसका use key bord के data इनपुट लेंने के लिए किया जाता है
Syntex of scanf () function
scanf(“format string ”,arg1 ,arg 2 ,arg n);
Example Of scanff() Function In C
#include
#include
void main()
{
int a,b,c;
clrscr();
printf("Enter Value Of A :");
scanf("%d",&a);
printf("Enter Value Of B :");
scanf("%d",&b);
c=a+b;
printf("Sum = %d",c);
getch();
}