Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Write a program to calculate the area of a rectangle given length and width.

Easy

Problem Statement

Write a program to calculate the area of a rectangle given length and width.

Sample Input

length = 5, width = 10

Sample Output

50

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
// Calculate and print area of a rectangle let length = 5; let width = 10; console.log;
Log in or sign up to run or submit your code.Log inSign up
Input
length = 5, width = 10
Expected Output
50