how to scanf an integer or enter in c code example Example: scanf integer int integer; scanf("%d", &integer);