summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Traver <[email protected]>2022-10-18 20:20:03 -0700
committerJoe Traver <[email protected]>2022-10-18 20:20:03 -0700
commitf41b23874d8478ab8a60dee893fed189a2f4d333 (patch)
treec9b068b0028b6ccc4d2fe8883445835d697ae228
parentStep 2 Complete (diff)
downloadcst116-lab1-joetraver30-f41b23874d8478ab8a60dee893fed189a2f4d333.tar.xz
cst116-lab1-joetraver30-f41b23874d8478ab8a60dee893fed189a2f4d333.zip
Step 3 Complete
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index cbc555d..505dbf4 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -13,6 +13,7 @@ int main()
{
int height;
int width;
+ int area;
cout << "Enter height of kite in cm: ";
@@ -26,11 +27,7 @@ int main()
cout << "Width = " << width << " cm" << endl;
-
-
-
-
-
+ area = (height * width) / 2;
}