how do i display floats to the significant number of digits entered by user at runtime?
suppose user enters a float no = 88.8765421
and he enters the number of significant number of digits to be 2
then my printf() will become
printf("%.2f",no);
if he enters 3 significant number of digits then printf() should become
printf("%.3f",no);