diff options
| author | Joe Traver <[email protected]> | 2022-10-18 20:20:03 -0700 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-10-18 20:20:03 -0700 |
| commit | f41b23874d8478ab8a60dee893fed189a2f4d333 (patch) | |
| tree | c9b068b0028b6ccc4d2fe8883445835d697ae228 | |
| parent | Step 2 Complete (diff) | |
| download | cst116-lab1-joetraver30-f41b23874d8478ab8a60dee893fed189a2f4d333.tar.xz cst116-lab1-joetraver30-f41b23874d8478ab8a60dee893fed189a2f4d333.zip | |
Step 3 Complete
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 7 |
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; } |