float and double Output

#include <stdio.h>

int main() {
    float floatValue = 3.14f;
    double doubleValue = 3.14;

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

    return 0;
}
  1. Declare a variable floatValue of type float and initialize it with the value 3.14f.
  2. Declare a variable doubleValue of type double and initialize it with the value 3.14.
  3. Print the value of floatValue using the printf function with the format specifier %f.
  4. Print the value of doubleValue using the printf function with the format specifier %lf.
  5. Return 0 to indicate successful program execution.