#include #include int main(int argc, char ** argv) { int a=9; int b=5; double c; //c = a/b; // wrong result due to integer division c = (1.0*a)/b; // correct (v. 1) //c = ((double)a)/b; // correct (v. 2) printf("The result is %f \n", c); system("pause"); }