Hamish GCSE Computer Science Blog
Friday, 14 November 2014
Python Challenge 12
pi = (3.14159)
l = float(input("what is the length of the rectangle"))
w = float(input("what is the width of the rectangle"))
r = float(input("what is the radius of the circle"))
area = (l) * (w)
ac = pi * r ** 2
ans = (area) - (ac)
print (ans)
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment