/*******************************************************************************
 * Aiden Stannard // CS1A // Chapter 4 Homework: Challange 4# // 9/26/2026
 * 
 * Calculate Rectange Area
 * 
 * This program receives the dimensions of two different rectangle and outputs
 * which rectangle has a greater area.
 * 
 * Inputs: 
 * Enter the Length and width of your first rectangle respectively
 * Enter the length and width of your second rectangle respectively
 * 
 * Output:
 * The ___ rectangle has a greater area than the ____ rectangle
 ******************************************************************************/
#include <iostream>
using namespace std;

int main() 
{
	float length;
	float width;
	float lengthTwo;
	float widthTwo;
	float area;
	float areaTwo;
	
	cout << "Enter the Length and width of your first rectangle respectively" << endl;
	cin >> length;
	cin >> width;
	cout << "Enter the length and width of your second rectangle respectively" << endl;
	cin >> lengthTwo;
	cin >> widthTwo;
	
	area = length * width;
	areaTwo = lengthTwo * widthTwo;
	
	if (area > areaTwo)
		cout << "The first rectangle has a greater area than the second" << endl;
	else
		cout << "The second rectangle has a greater area than the first" << endl;
	return 0;
}