Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float fahr, celcius;
- int lower, upper, step;
- lower = 0;
- upper = 100;
- step = 5;
- celcius = lower;
- printf("fahrenheit celcius \n");
- while( celcius <= upper){
- fahr = celcius*(9.0/5.0)+32;
- printf("%6.1f %3.0f\n", fahr, celcius);
- celcius=celcius+step;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement