1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Valentin [98]
3 years ago
14

The area of a rectangle is the rectangle’s length times its width. Write a program that asks for the length and width of two rec

tangles. The program should tell the user which rectangle has the greater area, or if the areas are the same.

Mathematics
1 answer:
Mnenie [13.5K]3 years ago
7 0

Answer:

Using c++

Check the image for colors.

Step-by-step explanation:

#include <iostream>

using namespace std;

int main()

{

   float length1,length2,width1,width2,area1,area2;

   

   cout<<"length of Rectangle 1\n";

   cin>>length1;

   cout<<"\nwidth of Rectangle 1\n";

   cin>>width1;

   cout<<"\nlenght of Rectangle 2\n";

   cin>>length2;

   cout<<"\nwidth of Rectangle 2\n";

   cin>>width2;

   

   area1=length1*width1;

   area2=length2*width2;

   

   if (area1<area2)

   {cout << "\nRectangle 2 has greater area";}

   else {

               if (area1>area2)

                  {cout << "\nRectangle 1 has greater area";}

               else {cout << "\nAreas are the same";}

         }

   

   return 0;

}

You might be interested in
A ladder leans against the side of house. The angle of elevation of the ladder 71 degrees , and the top o from the bottom of the
Black_prince [1.1K]

Answer:

72.4

use the Pythagorean theorem

3 0
3 years ago
What two numbers that you multiply to equal 96?
Lady_Fox [76]

3 and 32

Step-by-step explanation: 32 *3 equals 96

3 0
3 years ago
Read 2 more answers
The answer and how to solve it
blondinia [14]
U would simpiphy it to then get the awnser
3 0
3 years ago
Can y’all help me on question 15?!
lisov135 [29]

Answer:

B. 2⁵ + 7²

Step-by-step explanation:

2 to the fifth power is: 2⁵

7 squared (7 to the second power) is: 7²

5 0
3 years ago
Just need to know the answer thanks
enyata [817]
A) x=3   x=2
b) x=-8   x=-2

6 0
3 years ago
Read 2 more answers
Other questions:
  • Find the zeros of the following polynomial.<br> 3x3 + 9x2 - 12x
    6·2 answers
  • What additional information would you need to prove that ΔABC ≅ ΔDEF by ASA?
    6·1 answer
  • To 6x - 5(2x - 4) = 3x - 6?
    5·1 answer
  • NEED HELP ASAP!!!<br> thank you.
    10·1 answer
  • What part of 5 and 3/4 is 7/10?
    15·1 answer
  • Two times a number decreased by eleven
    5·1 answer
  • 20 POINTS!!!
    15·1 answer
  • Can you guys help me on this one please ?
    13·1 answer
  • PLZ HELP ASAP WILL GIVE BRAINLIEST
    6·1 answer
  • Ethan and Evan are twins. They each deposit $3,000 into separate bank accounts. Their accounts each accrue interest annually. Ex
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!