Hello.
The title pretty much says it all. I would like to know if and how you can print a number (type is double) with the same amount of decimal spaces as the one you entered.
If I enter 12.34 I would like the output to be 12.34 and not 12.340000000
Let's say that the program is this:
#include<stdio.h>
double a;
main(){
scanf("%lf",&a);
printf("%lf\n", a);
return 0;
}