how to scanf 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 <stdio.h>
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;
}