#include<stdio.h>
void main(){
printf("%f\n",5/9); // prints 0.000000
printf("%f\n",9.0/5.0); // prints 1.800000
printf("%f\n",5/9); // prints 1.799999
}
The 5th line value should print 0.000000 like in 3rd line
I have tried in local machine and online compiler the results were same