Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int celcius, fahr, kelvin;
- int lower, upper,step;
- lower=0;
- upper=100;
- step=10;
- celcius=lower;
- while (celcius<=upper)
- {
- fahr=(celcius*1.8)+32;
- kelvin=celcius+273.15;
- printf("%d\t %d\t \n",celcius ,fahr, kelvin);
- celcius=celcius+step;
- }
- }
Add Comment
Please, Sign In to add comment