diff options
| author | Evan <[email protected]> | 2022-10-19 02:36:53 -0700 |
|---|---|---|
| committer | Evan <[email protected]> | 2022-10-19 02:36:53 -0700 |
| commit | c41b48ff91d1a191a3f8d0deaa7026fdd2eb0b12 (patch) | |
| tree | e05f50ecd302fd5510fde91d4314e58b8e91703c /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | 1 (diff) | |
| download | cst116-lab1-evanmihm-c41b48ff91d1a191a3f8d0deaa7026fdd2eb0b12.tar.xz cst116-lab1-evanmihm-c41b48ff91d1a191a3f8d0deaa7026fdd2eb0b12.zip | |
s
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 081d006..e7ffca3 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -21,13 +21,18 @@ int main() Area = (Width * Length) / 2; Area2 = Area / 10000; - aspectr = Width / Length; cout << "Area in Meters = " << Area2 << endl; - cout << "Aspect Ratio = " << aspectr; + cout << "Aspect Ratio = " << aspectr << endl; + + if (aspectr >= 1) + cout << "Your Aspect Ratio is > 1" << endl; + + else if (aspectr < 1) + cout << "Your Aspect Ratio is < 1" << endl; return 0; }
\ No newline at end of file |