1#include <stdio.h>
2int main() {
3 int number;
4 printf("Enter an integer: ");
5 scanf("%d", &number);
6 printf("You entered: %d", number);
7 return 0;
8}
1// the %d is a format specifier that search for a variable containing
2// an int in the printf function.
3printf("You entered: %d", number);