Computer Science, asked by ajaykumartomar1, 6 months ago

Write a program to calculate area of a rectangle using any two arbitrary numbers as length and breadth. class 9

Answers

Answered by jashanpreet7852
0

Answer:

Means our computer is receiving data from internat

Answered by navylover2916
0

import java.util.Scanner;

public class rectangle

{

    public static void main (String  [ ] args)

         {

                 Scanner scan=new Scanner (System.in);

                 System.out.println ("ENTER THE LENGTH");

                 double len=scan.nextDouble( );

                 System.out.println ("ENTER THE BREADTH");

                 double bre=scan.nextDouble( );

                 double area=len*bre;

                  System.out.println ("The area of the rectangle is : "+area);

         }

}

                   

               

Similar questions