Last Updated: 27 Jan, 2021

Find Area of Rectangle

Easy
Asked in company
Razorpay

Problem statement

Take the length(L) and breadth(B) of the rectangle as input and find its area.

Note:
Length and breadth must be an integer value and the area will always be in the range of integers.
Input Format:
The first line of input contains two integers, both separated by a single space denoting the length and breadth respectively.
Output Format:
The only line of output prints the area of the rectangle
Constraints:
1 <= L, B <= 10ˆ2

Approaches

01 Approach

Take inputs of length and breadth in two variables l and b. Create a new variable area and store the area of rectangle(l*b) in it. Finally print the area.