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
I need help with this PLZ!!!!!!!​
garri49 [273]

Answer:

3. 91.125

4. 30.375

Step-by-step explanation:

just multiply all of the sides

MARK ME BRAINLIEST

3 0
3 years ago
Read 2 more answers
Help please really don’t know what the answers is
Arturiano [62]

Answer:

No

Step-by-step explanation:

The Side-Angle-Side rule of congruence

two triangles are congruent if two sides and one included angle in a given triangle are equal to the corresponding two sides and one included angle in another triangle.

8 0
3 years ago
Read 2 more answers
I NEEDZ HELPZZZZZZZZ!!!!<br><br><br>btw i didnt mean to click d)20..
joja [24]
The slope is 0 or answer B.)
8 0
3 years ago
A plumber has two pipes. One pipe is 7 times as long as the other pipe. He cuts 2.2 meters from the longer pipe. The remaining l
leva [86]
7x2.2 is 14.4 then you will need to multiply 3x2.2 then add them up
4 0
3 years ago
Read 2 more answers
(-2-4)x8=<br><img src="https://tex.z-dn.net/?f=%28%20-%202%20-%204%29%20%5Ctimes%208%20%3D%20" id="TexFormula1" title="( - 2 - 4
Nitella [24]
All we have to do is subtract -2 - 4 and we get -6, and multiply -6 * 8 to get our answer.

Answer: -48.
6 0
3 years ago
Other questions:
  • What is the derivative of the following function? f(x) = 4x^6/cos^5(x)
    11·1 answer
  • 25 POINTS!!!!!!
    14·2 answers
  • 5/8 of students choose blue, 5/9 of students choose green, 48 students chose red. how many students chose green and blue?
    5·1 answer
  • A graph is drawn to represent a relationship between distance, d, and time, t. Which situation could be represented on the graph
    12·2 answers
  • #6 Find Value of X . Round answer to nearest tenth.
    7·1 answer
  • What is 7 more than five times the number 9 divided by 15??
    5·1 answer
  • Help please guys!!!!
    9·1 answer
  • Which polynomial is a monomial?
    15·1 answer
  • What's the answer ? <br><br>10 - 10 × 10 ​
    12·1 answer
  • Math help help help answer all 4 pls
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!