daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. t = input()
  2. if t == 'треугольник':
  3.     a = int(input())
  4.     b = int(input())
  5.     c = int(input())
  6.     p = (a + b + c)/2
  7.     print (int(p *(p - a) * (p - b) * (p - c)) ** .5)
  8. elif t == 'прямоугольник':
  9.     a = int(input())
  10.     b = int(input())
  11.     print(a * b)
  12. else:
  13.     r = float(input())
  14.     print(3.14 * (r * r))
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
 
Top