/* ---------------------------------------------- */ /* Problem 4: Input Conversion Error */ /* Use %f for the input of a double variable */ #include #include int main(void) { // Use %f for the input of a double variable double x1; printf("Input a value: "); scanf("%f",&x1); /* Printed results */ printf("The stored value is: %lf \n",x1); /* Exit program. */ return 0; } /* ---------------------------------------------- */