Area of rectangle

Report a typo

Write a C++ program to calculate the area of a rectangle. Take the length and width as input from the user, and print the area. Use appropriate data types and arithmetic operators.

Sample Input 1:

4 5

Sample Output 1:

Area: 20

Sample Input 2:

10 20    

Sample Output 2:

Area: 200
Write a program in C++





Create a free account to access the full topic