Scanf function

Share it Please
scanf function is used to gain data from user and store it into any variable.Note that Scanf(); is not allowed because c programming is a case-sensitive language.
Some examples of scanf function:
scanf(“%d”,&a);           // %d is data type of variable and a is the name of variable.
scanf(“%c”,&c);           // %c is a character datatype and c is a variable.
Example for scanf function.
#include<stdio.h>
#include<conio.h>
main()
{
            int a;
            clrscr();
            printf("Enter Number: ");
            scanf("%d",&a);
            printf("\nYou have entered %d",a);
            getch();
}