import java.util.Scanner; public class MyClass { public static void main(String args[]) { double base=Double.parseDouble(args[0]); double height=Double.parseDouble(args[1]); double area=base*height; System.out.println("Area of prism 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)}}