simbax

stopnie.py

Dec 28th, 2012
6,492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # coding=utf-8
  2. # Program wyświetli tabelę przeliczeń stopni
  3. # Celsjusza na stopnie Fahrenheita w zakresie
  4. # od -20 do +40 stopni Celsjusza, co 5 stopni.
  5. stopnie_celsjusza = range(40, -20, -5)
  6. for t in stopnie_celsjusza:
  7.     print "Celsjusza: %+4i Fahrenhaita: %+4i" % (t, int(32 + 9.0/5.0 * t))
Advertisement
Add Comment
Please, Sign In to add comment