From 91ba9e64cc7f13579a025450c79a2060e2cde3b4 Mon Sep 17 00:00:00 2001 From: alexandra-apetroaei Date: Mon, 17 Oct 2022 21:42:21 -0800 Subject: Step two complete --- BlankConsoleLab/BlankConsoleLab.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 1496419..558a738 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -19,13 +19,19 @@ int main() while (isStable == false) { - cout << "Insert width (in centimeters): " /endl ; + // Ask user for width and height in centimeters + cout << "Insert width (in centimeters): " << endl ; cin >> height; - cout << "Insert height (in centimeters): " /endl ; + cout << "Insert height (in centimeters): " << endl ; cin >> width; + + // Display width and height to user + cout << "You entered: " << width << "cm for width, and " << height << "cm for height" << endl; + } + } -- cgit v1.2.3