import java.util.Scanner; public class MyClass { public static void main(String args[]) { Scanner s= new Scanner(System.in); System.out.println("Enter the area of base:"); double base=s.nextDouble(); System.out.println("Enter the height:"); double height=s.nextDouble(); double area=base*height ; System.out.println("Area of SemiCircle is: " + area); } }
Interactive mode :
OFF ON

Stdin Inputs...
Result...
compiled and executed in {{this.executionTime}} second(s)

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