summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 3e4a160..f045f29 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -8,10 +8,11 @@ using namespace std;
using std::cout;
using std::cin;
using std::endl;
-
+
int main()
{
- float width, length, area, ratio;
+ float width, length, area, ratio, gravitational ;
+ const int mass = 135;
cout << "Enter width (cm) : ";
cin >> width;
@@ -45,8 +46,10 @@ int main()
cout << "ratio: ";
cout << ratio << endl;
if (ratio >= 1)
- cout << "a lower aspect ratio would provide more stability";
-
+ cout << "a lower aspect ratio would provide more stability" << endl;
+ gravitational = mass * area;
+ cout << "gravitational: ";
+ cout << gravitational << endl;
}