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

Programming Exercises

Calculate the area of a rectangle

Easy

Problem Statement

Calculate the area of a rectangle

Sample Input

Length = 5, Breadth = 10

Sample Output

Area of the rectangle: 50

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
fun main() { val length = 5 val breadth = 10 // Add your code here to calculate the area }
Log in or sign up to run or submit your code.Log inSign up
Input
Length = 5, Breadth = 10
Expected Output
Area of the rectangle: 50