Paste Search Dynamic
Recent pastes
The area of rectangle is
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.util.Scanner;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Main
  10. {
  11.         public static void main (string[] args) throws java.lang.exception
  12.         {
  13.                 Scanner scanner = new Scanner(system.in);
  14.  
  15.       system.out.println("Enter the length of the Rectangle :");
  16.       double base = scanner.nextDouble();
  17.  
  18.       system.out.println("Enter the breadth of the Triangle:");
  19.       double height = scanner.nextDouble();
  20.  
  21.       double area=base*height;
  22.       system.out.println("The area of rectangle is  "+area);
  23.         }
  24. }
Parsed in 0.018 seconds