You are on page 1of 1

#include <stdio.

h>
int main() {
int number;

printf("Enter an float: ");

// reads and stores input


scanf("%f", &number);

// displays output
printf("You entered: %f", number);
//you can also use %.3f for almost
result
return 0;
}

You might also like