From 25ec02bd024d358bb4ac5024024f497c7d78c619 Mon Sep 17 00:00:00 2001 From: CEOofOogaBooga Date: Tue, 18 Oct 2022 19:36:02 -0700 Subject: Fixing Ratio --- BlankConsoleLab/BlankConsoleLab.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index d0675e0..1a04d1f 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -21,10 +21,11 @@ int main() cin >> length; area = ((length * width)/2.0)/10000.0; cout << "Area in square meters: " << area; - cout << "ratio in cm: " << ratio = width / length << endl; - if ratio >= 1 - cout "Warning: use a lower ratio for stability"; - + ratio = width / length; + cout << "Ratio: " << endl; + //if ratio >= 1 + // cout "Warning: use a lower ratio for stability"; + } -- cgit v1.2.3