scanf(scanf) in c code example
Example 1: c scanf
scanf("%d",&variable);
/*
% is a format specifier
%d or %i for int
%ld or %li for long int
%f for float
%lf for double
%c for char
%s for string
*/
Example 2: c printf scanf
int a;
scanf("%d", &a);
printf("%d", a);