scan variable in c code example Example 1: how to scan in c scanf("%d",&int); Example 2: scanf integer int integer; scanf("%d", &integer);