Guest User

Untitled

a guest
Dec 7th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // Celsius-Farengeit.cpp: главный файл проекта.
  2. #include <stdio.h>
  3. main()
  4. {
  5. int fahr, celsius
  6. int lower, upper, step;
  7. lower=0;
  8. upper=300;
  9. step=20;
  10. fahr=lower;
  11. while (fahr<=upper) {
  12. celsius=5*(fahr-32)/9;
  13. printf ("%d\t%d\n", fahr, celsius);
  14. fahr=fahr+step;
  15. }
  16. }
Add Comment
Please, Sign In to add comment