summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authoralexandra-apetroaei <andra@MSI>2022-10-17 21:32:55 -0800
committeralexandra-apetroaei <andra@MSI>2022-10-17 21:32:55 -0800
commit003477e30c1183600c7505961f02fdd1018f2f63 (patch)
tree6066b0f8c761e832e72e8cf397ce48ac166d8837 /BlankConsoleLab/BlankConsoleLab.cpp
parentfirst change (diff)
downloadcst116-lab1-alexandra-apetroaei-003477e30c1183600c7505961f02fdd1018f2f63.tar.xz
cst116-lab1-alexandra-apetroaei-003477e30c1183600c7505961f02fdd1018f2f63.zip
Fixed first part
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 7deb81d..1496419 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -11,15 +11,20 @@ using std::endl;
int main()
{
- int height = 0;
- int width = 0;
-
-
- cout << "Insert the width: ";
- cin >> height;
-
- cout << "Insert height: ";
- cin >> width;
+ float width;
+ float height;
+ float area;
+ float aspect_ratio;
+ float isStable = false;
+
+ while (isStable == false)
+ {
+ cout << "Insert width (in centimeters): " /endl ;
+ cin >> height;
+
+ cout << "Insert height (in centimeters): " /endl ;
+ cin >> width;
+ }
}