diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..e63706e 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,16 +1,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; -using std::cout; -using std::cin; -using std::endl; - +int width = 0; +int length = 0; +float area = 0; int main() { - cout << "Hello World!\n"; + cout << "Enter width in cm: "; + cin >> width; + cout << "Enter length in cm: "; + cin >> length; + area = ((length * width)/2)/10000; + cout << "Area in square meters: " << area; + } |