Advertisement
Zboru

Untitled

Jun 4th, 2020
1,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import math
  2. x = int(input('Podaj x: '))
  3. print("Podane x to:", x)
  4. if (x < 1 and x >= -5):
  5.     wynik = math.sin((math.pi*2)-1)
  6. elif (x < -5):
  7.     wynik = x**2
  8. elif (x >= 1) :
  9.     wynik = (2 * x)+ 1
  10. print(wynik)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement