Question: Java program coding Write a program to calculate the area of a rectangle. Input the length and breadth values in feet from the user via
Java program coding

Write a program to calculate the area of a rectangle. Input the length and breadth values in feet from the user via the console and after calculations, print the resulting area in SqFt. The user input values should accommodate decimals. (Hint: the area of a rectangle is length multiplied by breadth) Sample output Welcome. This program will calculate area of a rectangle. Enter length of rectangle in feet: 3.2 Enter breadth of rectangle in feet: 10 The area of the rectangle is 32 SqFt Sample output: Welcome. This program will calculate area of a rectangle. Enter length of rectangle in feet: 3.2 Enter breadth of rectangle in feet: 2.2 The area of the rectangle is 7.04 SqFt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
