#include <stdio.h>
int main(int argc, const char * argv[]) {
    int a = 10;
    int b = 20;
    double result = a / b;
    printf("%d divided by %d makes %f\n", a, b, result);
    return 0;
}
Expecting that the %f would return 0.500000, I ran the code and it turned out to be 0.000000.
Is there a reason that the result variable is returning a zero value?
 
     
    