Programming In Java · Instructor: Prof. Debasis Samanta
Write a Java program to calculate the area of a rectangle. The formula for area is: Area = length × width You are required to read the length and width from the user, compute the area, and print the result.
// Reference solution (Java)
int area = length * width; // Multiply length and width to get the area