Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x = int(input('Podaj x: '))
- print("Podane x to:", x)
- if (x < 1 and x >= -5):
- wynik = math.sin((math.pi*2)-1)
- elif (x < -5):
- wynik = x**2
- elif (x >= 1) :
- wynik = (2 * x)+ 1
- print(wynik)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement