Advertisement
Guest User

1012 solve

a guest
May 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. def calculate(a,b,c):
  2.     pi=3.14159
  3.     tri=.5 *a *c
  4.     tre = print("triangle: ", "{:.3f}".format(tri))
  5.     d=pi * (c * c)
  6.     da=print("circulo: ","{:.3f}".format(d))
  7.     tra=(a+b)/2*c
  8.     tra1=print("trapezio: ","{:.3f}".format(tra))
  9.     s=b*b
  10.     s1=print("quadrado: ","{:.3f}".format(s))
  11.     r=a*b
  12.     r1=print("retangulo: ","{:.3f}".format(r))
  13.     return da,tre,tra1,s1
  14.  
  15. calculate(float(input()),float(input()),float(input()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement