summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexandra-apetroaei <andra@MSI>2022-10-17 21:42:21 -0800
committeralexandra-apetroaei <andra@MSI>2022-10-17 21:42:21 -0800
commit91ba9e64cc7f13579a025450c79a2060e2cde3b4 (patch)
tree99a18ee8dfc62ef0afb3ae730ae174299002c560
parentFixed first part (diff)
downloadcst116-lab1-alexandra-apetroaei-91ba9e64cc7f13579a025450c79a2060e2cde3b4.tar.xz
cst116-lab1-alexandra-apetroaei-91ba9e64cc7f13579a025450c79a2060e2cde3b4.zip
Step two complete
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp10
1 files changed, 8 insertions, 2 deletions
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;
+
}
+
}