public class MyClass { public static void main(String args[]) { System.out.println("Enter the side of the Triangle:"); double a=Double.parseDouble(args[0]); double area=(Math.sqrt(3)/4)*(a*a); System.out.println("area of an equilatera 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)}}