import java.util.Scanner; public class MyClass { public static void main(String args[]) { Scanner s= new Scanner(System.in); System.out.println("Enter the height:"); double d1= s.nextDouble(); System.out.println("Enter the breadth:"); double d2= s.nextDouble(); double area=(d1*d2) ; System.out.println("Area of Parallelogram is: " + area); } }
Input Arguments (args of Main Method)...
Result...
compiled and executed in {{this.executionTime}} second(s)

								
Online execution powered by JDoodle.com
{{this.setLanguage("java", "",".java",true, 0)}}