public class MyClass { public static void main(String args[]) { System.out.println("The value of the 2samesides read from the argument"); double a =Double.parseDouble(args[0]); System.out.println("The value of the third side read from the argument"); double b =Double.parseDouble(args[1]); double area=(b/4)*Math.sqrt((4*a*a)-(b*b)); System.out.println("Area of Triangle 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)}}