Scanf is used to get the input from the users.
Format: Scanf("datatype",&dataname);
for ex: To get an integer 'a' from the user
scanf("%d",&a);
the given value by the user is saved in the data 'a'.
Format: Scanf("datatype",&dataname);
for ex: To get an integer 'a' from the user
scanf("%d",&a);
the given value by the user is saved in the data 'a'.