diff options
| author | WilliamBishopCST116 <[email protected]> | 2022-10-17 11:14:25 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-17 11:14:25 -0700 |
| commit | 2aa21910d70004400c179c611f8fbc8909609a4a (patch) | |
| tree | 340d9e09ee27a58e32b10fe55e0d77314cfe7b02 | |
| parent | Add files via upload (diff) | |
| download | cst116-lab1-williambishopcst116-2aa21910d70004400c179c611f8fbc8909609a4a.tar.xz cst116-lab1-williambishopcst116-2aa21910d70004400c179c611f8fbc8909609a4a.zip | |
Add files via upload
| -rw-r--r-- | CST116-Lab1-Bishop-Submission3.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/CST116-Lab1-Bishop-Submission3.cpp b/CST116-Lab1-Bishop-Submission3.cpp new file mode 100644 index 0000000..f74bc4d --- /dev/null +++ b/CST116-Lab1-Bishop-Submission3.cpp @@ -0,0 +1,33 @@ +//William Bishop + +// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include <iostream> + +using namespace std; + +using std::cout; +using std::cin; +using std::endl; + +int main() +{ + int kite; + int horizontal_kitew; + int vertical_kitel; + + cout << "Please enter a width of the kite" << endl; + cin >> horizontal_kitew + cout << "Your width is: " << horizontal_kitew << endl; + cout << "Please enter your height of the kite " << endl; + cin >> vertical_kitel; + cout << "Our width and the height is: " << horizontal_kitew << "and " << vertical_kitel << endl; + + int areaofkite; + int areaofkite = (horizontal_kitew * vertical_kitel) / 2; + + +} + |