how to use scanf to read a number code example
Example 1: scanf in c
#include
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}
Example 2: how to scan in c
scanf("%d",&int);
#include
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}
scanf("%d",&int);