Q:

Java Program To Find Area of Parallelogram

0

Java Program To Find Area of Parallelogram by getting user input.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.util.Scanner;
public class demo1 
{
   public static void main(String args[]) 
    {          
      Scanner input= new Scanner(System.in);       
         System.out.println("Enter the height:");
         double d1= input.nextDouble();
        System.out.println("Enter the breadth:");
         double d2= input.nextDouble();        
          double  area=(d1*d2) ;
      System.out.println("Area of Parallelogram is: " + area);      
   }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now