#include <stdio.h>
int main() {   
    float number;
   
    printf("Enter an integer: ");  
    
    // reads and stores input
    scanf("%f", &number);

    // displays output
    printf("You entered: %g", number);
    
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: