Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- double inc = 0, mph = 0, fps = 0;
- printf("Input increment from 0 to 80: \n");
- scanf("%lf", &inc);
- printf("mph to fps. \n");
- while (mph <= 80)
- {
- fps = mph * 5280.0/3600;
- mph += inc;
- if (mph <= 80)
- {
- printf("%5.0f %5.1f \n", mph,fps);
- }
- if (inc == 0) {
- inc += 1;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment