fork download
  1. #include <stdio.h>
  2. int main() {
  3. int number;
  4.  
  5. printf("Enter an integer: ");
  6.  
  7. // reads and stores input
  8. scanf("%d", &number);
  9.  
  10. // displays output
  11. printf("You entered: %d", number);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 5316KB
stdin
#include <stdio.h>
int main() {   
    int number;
   
    printf("Enter an integer: ");  
    
    // reads and stores input
    scanf("%d", &number);

    // displays output
    printf("You entered: %d", number);
    
    return 0;
}
stdout
Enter an integer: You entered: 32764