I have a program that outputs the following:
Now, clearly I did not enter the number 4.85462e-270. Below is the code that produced this error.Code:$ ./a.out Enter a number: 3 the number you entered is: 4.85462e-270 $
Where is my error? How do I fix it?Code:#include <stdio.h> int main() { double x; printf ("Enter a number:\n"); scanf("%g", &x); printf("the number you entered is:\n%g\n",x); return 0; }