diff options
| author | TheOtherTonyStark <[email protected]> | 2022-10-16 16:43:27 -0700 |
|---|---|---|
| committer | TheOtherTonyStark <[email protected]> | 2022-10-16 16:43:27 -0700 |
| commit | aca1a22be3ed13116c04441d4e1d632b3290eca1 (patch) | |
| tree | 02f01f83b43cd56c14602e4834e9600ea78f34d6 /BlankConsoleLab/CST116-Lab1-Chambers.cpp | |
| parent | First Commit (diff) | |
| download | cst116-lab1-theothertonystark-aca1a22be3ed13116c04441d4e1d632b3290eca1.tar.xz cst116-lab1-theothertonystark-aca1a22be3ed13116c04441d4e1d632b3290eca1.zip | |
Second Commit
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Chambers.cpp')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Chambers.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Chambers.cpp b/BlankConsoleLab/CST116-Lab1-Chambers.cpp index 2453f32..82c1e87 100644 --- a/BlankConsoleLab/CST116-Lab1-Chambers.cpp +++ b/BlankConsoleLab/CST116-Lab1-Chambers.cpp @@ -19,14 +19,26 @@ using std::endl; int width; int length; +int kitearea(); int main() { - cout << "Insert Kite width" ; - cin >> width; + + cout << "Insert Kite width: " ; + cin >> width ; - cout << "Insert Kite length" ; - cin >> length; + cout << "Insert Kite length: " ; + cin >> length ; + + cout << "Our kite has a width of " << width << " and a length of " << length << " both measured in cm." ; + +} +int kitearea() +{ + + int area = width * length; + + cout << "Our kite was an area of " << area << " in cm^2."; } |