use a float a make a cast when you divide
float quotient;
.....
quotient = (float)first_Num / sec_Num;
printf("\nThe quotient of %d and %d is %f\n\n", first_Num, sec_Num, quotient);
Type: Posts; User: root
use a float a make a cast when you divide
float quotient;
.....
quotient = (float)first_Num / sec_Num;
printf("\nThe quotient of %d and %d is %f\n\n", first_Num, sec_Num, quotient);