diff options
| author | twsta <twsta@TRENTON-PC-V2> | 2022-10-11 19:13:38 -0700 |
|---|---|---|
| committer | twsta <twsta@TRENTON-PC-V2> | 2022-10-11 19:13:38 -0700 |
| commit | b05a34a3711e7c7b9bd2508275ff3b641acb9c6c (patch) | |
| tree | 4c6e11daddc50e20972417382ddc0c3bf1d6c2cd /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | added meter to centimeter calculation (diff) | |
| download | cst116-lab1-stark-b05a34a3711e7c7b9bd2508275ff3b641acb9c6c.tar.xz cst116-lab1-stark-b05a34a3711e7c7b9bd2508275ff3b641acb9c6c.zip | |
added ratio calculation
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index b079311..b0243ff 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -4,19 +4,20 @@ using namespace std; int main() { - int width, height; - float area; + int width, length; + float area, ratio; 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 << "Please input the length of your kite:" << endl; + cin >> length; cout << endl; cout << "Width: " << width << endl; - cout << "Height: " << height << endl; + cout << "length: " << length << endl; - area = (width * height) / 2; + area = (width * length) / 2; area = area / 10000; + ratio = width / length; } |