Question 886942: write a program to find wheather the area of the rectangle is greathe then its perimeter Found 2 solutions by josgarithmetic, Alan3354:Answer by josgarithmetic(39617) (Show Source):
You can put this solution on YOUR website! Assign some variables for input, x and y. You could choose other variable names. You have formulas, perimeter is , and area is . You want a program to check for , in a double alternative decision structure. You could assign the values from the formulas to process variables but the output would/could be a display like "Yes, Area Greater" or "No, Area not Greater."
You can put this solution on YOUR website! Perimeter is a linear value, and area is 2nd order, eg, feet and square feet.
It makes no sense to say one is greater than the other.
------
eg, 2 ft by 3 ft rectangle:
P = 12
Area = 6
P is greater
Change it to inches:
--> 24 by 36 inches
P = 120
Area = 864
Now area is greater for the same rectangle.
==============
Is it colder in the city than it is in the winter?