int x=7,y=2;
float f=x/y;
printf("%8.2f",(x/y));
For the above code, the output seems to be 0.00 but when we try to print the variable f the output is 3.00 with 4 blank spaces before it.Could someone tell me why?
int x=7,y=2;
float f=x/y;
printf("%8.2f",(x/y));
For the above code, the output seems to be 0.00 but when we try to print the variable f the output is 3.00 with 4 blank spaces before it.Could someone tell me why?