11-floatcall.cminus 230 Bytes
Newer Older
jhe's avatar
jhe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* float function call */

float mod(float x, float y) {
    int div;
    div = x / y;
    return x - div * y;
}

int main(void) {
    float a;
    float b;

    a = 11.2;
    b = 2.2;

    outputFloat(mod(a, b));
    return 0;
}