how to scanf for char code example
Example 1: how make a character in c scanf
scanf(" %c", &c);
Example 2: scanf in c
#include
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}
scanf(" %c", &c);
#include
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}