Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cylinder :: (RealFloat a) => a -> a -> a
- cylinder r h =
- let sideArea = 2 * pi * r * h
- topArea = pi * r ^2
- in sideArea + 2 * topArea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement