the outputTry %lf instead of %f
#include
int main()
{
double c;
scanf("%lf",&c);
printf("%lf",c);
return 0;
}
What you've used is %f, which is used for a regular float datatype.
since you've specified double , you need to use %lf , which is long float. it reads a double.
hope this helps you.