Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C programming help

Name: op 2011-11-05 15:22

Hey guys a avid python lover here. I'm reading K and R and I'm wondering why the fuck does this not work? thanks for any help

#include <stdio.h>

main()
{
    float k, c, f;
    int step, low;
    f = 0;
    step = 10;
    while (f <= 1000)
    {
        c = ((f - 32) / 1.8);
        k = (c + 273.15);
        printf("%d degrees farhienheit is equal to %d degrees celcius and %d degrees kelvin\n", f, c, k);
        f += step;
    }
    getchar();
}

Name: Anonymous 2011-11-05 16:52

mfw when noone on prog can code -_-

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List