//get a float from user
//print float value to console
#include <stdio.h>
int main()
{
//define a float variable
float a;
//print the prompt
printf("Please enter a float number: ");
//Actually getting the number
scanf("%f", &a);
printf("You have entered %f", a);
}