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();
}
#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();
}