Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package trapezoid;
- public class trapezoid.java {
- public static void main(String[] args) {
- double a = 8;
- double b = 5;
- float h = 3.5;
- System.out.println("S:" + (a+b)*h/2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement