SHARE
TWEET

Untitled

a guest Sep 16th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2.  
  3.  
  4. def f(x):
  5.     if x > -5 and x != 0:
  6.         return 1/x
  7.     elif x > -10:
  8.         return x*x
  9.     else:
  10.         return math.sqrt(abs(x) + 1)
  11.  
  12.  
  13. def main():
  14.     x = int(input('Введите X:'))
  15.     print(f(x))
  16.  
  17.  
  18. if __name__ == '__main__':
  19.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top