I want to divide two integers and result in a floating point value.
The following code works normally:
#include <stdio.h>
float divInts(int x, int y)
{
return((float)x/y);
}
void main()
{
printf("%f",divInts(50,3));
}
But...
asked by
07.09.2018 / 21:10