c scanf usage number code example Example 1: scanf c scanf("%d", &b); Example 2: scanf integer int integer; scanf("%d", &integer);