diff options
| author | Kai <[email protected]> | 2022-10-19 18:54:45 -0700 |
|---|---|---|
| committer | Kai <[email protected]> | 2022-10-19 18:54:45 -0700 |
| commit | ab674f15c3d9f5a280d01d2fdcb5e0c5f5f0a6f1 (patch) | |
| tree | af7f6f9003a87c93bbf5b031f80ddd18269805e3 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab1-cobrakai2-ab674f15c3d9f5a280d01d2fdcb5e0c5f5f0a6f1.tar.xz cst116-lab1-cobrakai2-ab674f15c3d9f5a280d01d2fdcb5e0c5f5f0a6f1.zip | |
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..49039dc 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -9,8 +9,45 @@ using std::cout; using std::cin; using std::endl; + + int main() { - cout << "Hello World!\n"; + float var1; + float var2; + float var3; + float var4; + float var5; + float var6; + + cout << "Enter a value for the width of kite one:"; + cin >> var1; + + cout << "Enter a value for the length of kite one:"; + cin >> var2; + + cout << "Calculating the Area of kite one:"; + var3 = var1 * var2; + cout << var3; + + cout << "\nEnter the value for the width of kite two:"; + cin >> var4; + + cout << "Enter the value for the length of kite two:"; + cin >> var5; + + cout << "Calculating the Area of kite two:"; + var6 = var4 * var5; + cout << var6; + + if (var3 > var6) + + cout << "Kite one is bigger"; + + else + + cout << "Kite two is bigger"; + + } |