diff options
| author | CEOofOogaBooga <[email protected]> | 2022-10-18 19:36:02 -0700 |
|---|---|---|
| committer | CEOofOogaBooga <[email protected]> | 2022-10-18 19:36:02 -0700 |
| commit | 25ec02bd024d358bb4ac5024024f497c7d78c619 (patch) | |
| tree | 55b03f9783cccf13abe77e9a08c55a536354c0ac | |
| parent | ratio part (diff) | |
| download | cst116-lab1--trinh--25ec02bd024d358bb4ac5024024f497c7d78c619.tar.xz cst116-lab1--trinh--25ec02bd024d358bb4ac5024024f497c7d78c619.zip | |
Fixing Ratio
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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"; + } |