Float and Double Input/Output

#include <stdio.h>

int main() {
    float floatValue;
    double doubleValue;

    // Input
    printf("Enter a float value: ");
    scanf("%f", &floatValue);

    printf("Enter a double value: ");
    scanf("%lf", &doubleValue);

    // Output
    printf("Float value entered: %f\n", floatValue);
    printf("Double value entered: %lf\n", doubleValue);

    return 0;
}