summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwsta <twsta@TRENTON-PC-V2>2022-10-11 18:57:45 -0700
committertwsta <twsta@TRENTON-PC-V2>2022-10-11 18:57:45 -0700
commitf9ae204ffadf6c74130431a713f471a7a375a991 (patch)
treef6b6494e367b00693edaaf100bf9babc6a894240
parentadded input for width and height (diff)
downloadcst116-lab1-stark-f9ae204ffadf6c74130431a713f471a7a375a991.tar.xz
cst116-lab1-stark-f9ae204ffadf6c74130431a713f471a7a375a991.zip
added area calculation
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 90395d3..70fb5fc 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -4,12 +4,18 @@ using namespace std;
int main()
{
- int width, int height;
+ int width, height;
+ float area;
cout << "Kite Math 0.1" << endl;
cout << "Please input the width of your kite:" << endl;
cin >> width;
cout << "Please input the height of your kite:" << endl;
cin >> height;
+ cout << endl;
+ cout << "Width: " << width << endl;
+ cout << "Height: " << height << endl;
+
+ area = (width * height) / 2
}