landscape overleaf
include
int main() { std::cout << "Welcome to the Landscape Overleaf!" << std::endl;
// Step 1: Define variables
int width, height;
// Step 2: Prompt the user for input
std::cout << "Enter the width of the landscape: ";
std::cin >> width;
std::cout << "Enter the height of the landscape: ";
std::cin >> height;
// Step 3: Calculate the area
int area = width * height;
// Step 4: Display the result
std::cout << "The area of the landscape is: " << area << std::endl;
return 0;
}