summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authorCEOofOogaBooga <[email protected]>2022-10-18 19:27:36 -0700
committerCEOofOogaBooga <[email protected]>2022-10-18 19:27:36 -0700
commit09d8e7a1f807e57651c6707049bf21ccbd49f424 (patch)
tree6d66cfcdf31b109cc479c635e837334e63d55a83 /BlankConsoleLab/BlankConsoleLab.cpp
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-lab1--trinh--09d8e7a1f807e57651c6707049bf21ccbd49f424.tar.xz
cst116-lab1--trinh--09d8e7a1f807e57651c6707049bf21ccbd49f424.zip
Area step
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp21
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;
+
}