#include<stdio.h>
int main()
{
float a=5.0;
printf("The Output is %.2f",(7/5)*a+12);
}
I thought the output is 19.00 but the output is 17.00. How this is possible?. Please guide me how the output is 17.00 came....
7/5 is 1. That's integer division. Everything after that should be clear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With