summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab1-Fine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Fine.cpp')
-rw-r--r--BlankConsoleLab/CST116-Lab1-Fine.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Fine.cpp b/BlankConsoleLab/CST116-Lab1-Fine.cpp
index bf098cb..11dfaad 100644
--- a/BlankConsoleLab/CST116-Lab1-Fine.cpp
+++ b/BlankConsoleLab/CST116-Lab1-Fine.cpp
@@ -5,6 +5,8 @@
using namespace std;
+int GetArea(int length, int width);
+
using std::cout;
using std::cin;
using std::endl;
@@ -14,6 +16,7 @@ int main()
int length;
int width;
int correct = 0;
+ float area;
while (correct == 0) {
cout << "How long is your kite in centimeters? ";
cin >> length;
@@ -21,8 +24,11 @@ int main()
cin >> width;
cout << endl << "Your kite is " << length << "cm long and " << width << "cm wide? 1=Yes/ 0=No ";
cin >> correct;
- endl;
+ cout << endl;
}
+ area = (length * width) / 2.0;
+
}
+