I was just wondering if maybe the following isn't over complicatingThe answer isn't correct and you have to assign the value 1 and 2 to a float type before getting your answerCode:#include <stdio.h> main() { int value1 = 12, value2 = 5; float answer = 0; answer = value1 / value2; printf("The value of %d divided by %d is %f\n",value1,value2,answer ); } Sample program output The value of 12 divided by 5 is 2.000000would it not save time to just declare the values as type float in the first place?Code:answer = (float)value1 / (float)value2;I did this and it compiled fine without any errors. Is this bad form or an alternative?Code:/* type conversion */ #include <stdio.h> int main() { float value1 = 12.0, value2= 5.0; float answer = value1 / value2; printf("The value of %.2f divided by %.2f is %.2f\n", value1, value2, answer); getchar(); return 0; }