C scanf %*[ ]s%d code example
Example 1: 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;
}
Example 2: scanf in c
#include <stdio.h>
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}