d Online e-Libreary C Language Home (My Project)


Prv Next

Programing in C e-Book In Hindi

 

scanf() function in c In Hindi

 

scanf एक function है यह c language में एक प्री डिफाइन function है जिसका use key bord के data इनपुट लेंने के लिए किया जाता है
Syntex of scanf () function
scanf(“format string ”,arg1 ,arg 2 ,arg n);

 

Example Of Scanf() Function

#include<stdio.h>
#include<conio.h>
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();
}

 

Output :



.


Subscribe Our Website For Get Notification For New Update

Enter Name :
Enter E-Mail
Enter Mobile No
Enter City Name :