summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authorEvan <[email protected]>2022-10-19 02:36:53 -0700
committerEvan <[email protected]>2022-10-19 02:36:53 -0700
commitc41b48ff91d1a191a3f8d0deaa7026fdd2eb0b12 (patch)
treee05f50ecd302fd5510fde91d4314e58b8e91703c /BlankConsoleLab/BlankConsoleLab.cpp
parent1 (diff)
downloadcst116-lab1-evanmihm-c41b48ff91d1a191a3f8d0deaa7026fdd2eb0b12.tar.xz
cst116-lab1-evanmihm-c41b48ff91d1a191a3f8d0deaa7026fdd2eb0b12.zip
s
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp9
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