summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/cst116-lab1-wilson.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/cst116-lab1-wilson.cpp')
-rw-r--r--BlankConsoleLab/cst116-lab1-wilson.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/BlankConsoleLab/cst116-lab1-wilson.cpp b/BlankConsoleLab/cst116-lab1-wilson.cpp
index cf977a6..166f731 100644
--- a/BlankConsoleLab/cst116-lab1-wilson.cpp
+++ b/BlankConsoleLab/cst116-lab1-wilson.cpp
@@ -14,6 +14,7 @@ int main()
float width = 0;
float length = 0;
float area;
+ float mass;
float aspect_ratio;
while (true) {
@@ -46,7 +47,7 @@ int main()
else if (aspect_ratio < 1)
cout << "Aspect ratio < 1. Good aspect ratio.\n";
- float mass = 135 * (area / 10000);
+ mass = 135 * (area / 10000);
cout << "\nThe mass of your kite is " << mass << " grams / sq meter.\n";