Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phi = 3.14
- def LuasLingkaran(r):
- luas = phi * r * r
- print("Luas lingkaran: %f" % luas);
- def KelilingLingkaran(r):
- keliling = phi * (r + r)
- return keliling;
- r = input('Masukan jari-jari lingkaran: ')
- print("Keliling lingkaran: " + str(KelilingLingkaran(int(r))))
- luas = LuasLingkaran(int(r))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement