diff options
| author | alexandra-apetroaei <andra@MSI> | 2022-10-17 21:32:55 -0800 |
|---|---|---|
| committer | alexandra-apetroaei <andra@MSI> | 2022-10-17 21:32:55 -0800 |
| commit | 003477e30c1183600c7505961f02fdd1018f2f63 (patch) | |
| tree | 6066b0f8c761e832e72e8cf397ce48ac166d8837 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | first change (diff) | |
| download | cst116-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.cpp | 23 |
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; + } } |