summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: 49039dc2062382a6c473c0de3302605879eb10ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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()
{
    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";


}