Computer Science, asked by Anonymous, 11 months ago

write a program code to store the values of 2 and 3 in different variable and calculate and display the area of rectangle (A=L*B) in java script

Answers

Answered by Anonymous
3

Answer:

(My answer is in Java)

Explanation:

import java.util.Scanner;

public class Main

{

public static void main (String [] args)

{

Scanner sc = new Scanner(System.in);

int a=2;

int b=3;

int c=a*b;

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

}

}

Similar questions