Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Program {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. double sideA = sc.nextDouble();
  7. double height = sc.nextDouble();
  8.  
  9. double area = sideA * height / 2;
  10. System.out.printf("%.2f", area);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement