#include <stdio.h> { result = 7.0 / 22.0; return (0);
float result; /* Result of the divide */
int main()
printf("The result is %d\n", result);
}
This is because the variable result is of type float and you are using %d to print its value. Use %f instead.