how to use scanf and printf in c code example
Example 1: scanf in c
#include <stdio.h>
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}
Example 2: c printf scanf
int a;
scanf("%d", &a);
printf("%d", a);