diff options
| author | CEOofOogaBooga <[email protected]> | 2022-10-18 19:37:01 -0700 |
|---|---|---|
| committer | CEOofOogaBooga <[email protected]> | 2022-10-18 19:37:01 -0700 |
| commit | 884841f6d183b76c984e604eab1d8dac34c7f1c4 (patch) | |
| tree | ec214da05b7fa6ed734c6c86cdfcb72a94c4da99 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Fixing Ratio (diff) | |
| download | cst116-lab1--trinh--884841f6d183b76c984e604eab1d8dac34c7f1c4.tar.xz cst116-lab1--trinh--884841f6d183b76c984e604eab1d8dac34c7f1c4.zip | |
FIXED RATIO AGAIN
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 1a04d1f..a987969 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -20,9 +20,9 @@ int main() cout << "Enter length in cm: "; cin >> length; area = ((length * width)/2.0)/10000.0; - cout << "Area in square meters: " << area; + cout << "Area in square meters: " << area << endl; ratio = width / length; - cout << "Ratio: " << endl; + cout << "Ratio: " << ratio << endl; //if ratio >= 1 // cout "Warning: use a lower ratio for stability"; |