summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: 6c60d41b866649074fe976e4d0c3b2136173e302 (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
// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
/*
Thomas Trinh
CST116
Lab 1 Kite Dimensions
*/
#include <iostream>

using namespace std;

int width = 0;
int length = 0;
float area = 0;
int main()
{
    cout << "Enter width in cm: ";
       cin >> width;
    cout << "Enter length in cm: ";
       cin >> length;
       area = ((length * width)/2.0)/10000.0;
    cout << "Area in square meters: " << area;

}