diff options
| author | Hunter <[email protected]> | 2022-10-19 12:01:47 -0700 |
|---|---|---|
| committer | Hunter <[email protected]> | 2022-10-19 12:01:47 -0700 |
| commit | b339d1a3a0c87f58f9683ebed14d794af7b0ca9f (patch) | |
| tree | 9a580b96107cccd38d2f47cb638048f9d0269db9 | |
| parent | Rename BlankConsoleLab.cpp to CST116-Lab1-Byrne.cpp (diff) | |
| download | cst116-lab1-huntbyrne-b339d1a3a0c87f58f9683ebed14d794af7b0ca9f.tar.xz cst116-lab1-huntbyrne-b339d1a3a0c87f58f9683ebed14d794af7b0ca9f.zip | |
simple changes
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Byrne.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Byrne.cpp b/BlankConsoleLab/CST116-Lab1-Byrne.cpp index ed5f807..944f5e8 100644 --- a/BlankConsoleLab/CST116-Lab1-Byrne.cpp +++ b/BlankConsoleLab/CST116-Lab1-Byrne.cpp @@ -11,6 +11,20 @@ using std::endl; int main() { - cout << "Hello World!\n"; + // Following code is to find the area of the kite + int length = 0; + int width = 0; + float area = (length * width) + + // Asking the user to input the length and width in centimetres + cout << "What is the length of the kite in cm?\n" + cin >> length; + + cout << "What is the width of the kite in cm? \n" + cin >> width; + + return area; + + } |