Getting Error while calculation of two float numbers [closed]

At least: wrong format specifier.

//                              double     address 
printf("\nDensity of the Box Is %.2f\n\n", &den);

Save time, enable all warnings. A good well enabled compiler will warn about this mismatch.

Leave a Comment