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
What is the measure of BDC?
Anettt [7]
55. the central angels are the same, so the arc measure is the same
4 0
3 years ago
Read 2 more answers
Help me with this question.
tester [92]

Answer:

Hello

your answer is going to be I,  1 \frac{2}{3}

Step-by-step explanation:

4 0
4 years ago
2% of what number is 5?
inna [77]
- - Sole:

\frac{0.02}{5} = 0.004

Final answer:<span>0.004</span>
5 0
3 years ago
Read 2 more answers
The height of an airplane as it descends to an airport runway
olga55 [171]
Rational. Not whole or integer because its an exact measurement and not irrational because it CAN be expressed as a ratio (fraction, decimal measurement )
4 0
3 years ago
Okay, I have 2 questions. I'm in a rush so a quick answer would be best.
Ivanshal [37]
The first one is 23.430, I don't have time to help with the second part of the question, but good luck! :) 
8 0
3 years ago
Read 2 more answers
Other questions:
  • If parallelogram rstu has all sides the same length then it would be true that rs = st
    10·1 answer
  • Plz help me with this.​
    15·1 answer
  • Please help! I don’t know the answer
    13·1 answer
  • Mark had 285 pencils in five boxes. He needed to put an equal number of pencils in each box. use the area model below to find th
    13·1 answer
  • 3e - 19-7e + 10 simplified?
    11·1 answer
  • what does this mean? Could I be lectured on this? will give 50 points and brainliest to the fastest responder
    9·2 answers
  • Expand and simplify <br>2(3x - 5) + 3(x + 3)<br>can someone do this ASAP pls with no links :)​
    13·2 answers
  • A 20 cup fruit salad that is 15% strawberries is in a large container
    12·2 answers
  • A chair is on sale at a price of £20.80. This is a 20% reduction of the normal price what was the price of the chair before the
    5·1 answer
  • Can someone help me with this? please​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!