scanf c char code example
Example 1: how make a character in c scanf
scanf(" %c", &c);
Example 2: scanf c
scanf("%d", &b);
Example 3: scanf
#include
int main()
{
int a;
float b;
printf("Enter integer and then a float: ");
// Taking multiple inputs
scanf("%d%f", &a, &b);
printf("You entered %d and %f", a, b);
return 0;
}
Example 4: scanf in c
#include
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}