diff options
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"; + + } |