Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package quiz;
- public class Geometry {
- public static double circleArea(double r) {
- return Math.PI * Math.pow(r, 2);
- }
- public static double recArea(double length, double width) {
- return length * width;
- }
- public static double triandleArea(double base, double height) {
- return base * height * 0.5;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement