WAP to find area of rectangle.

1 year ago
OOP Java

Compile code:

class Area{
public static void main(String[] args) {
        
      int l = 5, b = 15, area;
      area = l*b;

      System.out.println("Area of rectangle  of these numbers: "+area);
   }
}

Output:

0
Dipti KC
Jan 8, 2023
More related questions

Questions Bank

View all Questions