diff options
author | Michael Abed <michaelabed@gmail.com> | 2012-03-05 14:28:10 -0500 |
---|---|---|
committer | Michael Abed <michaelabed@gmail.com> | 2012-03-05 14:28:10 -0500 |
commit | 1c03e941f1015c48917ddc603d84b134eb705f10 (patch) | |
tree | d89b07d63a12b5542882328c679bb76fb23a5f63 /Q1.cpp | |
parent | f2566da91396bc07356601794fd5db858a78f1f3 (diff) | |
download | ec327-lab2-1c03e941f1015c48917ddc603d84b134eb705f10.tar.gz ec327-lab2-1c03e941f1015c48917ddc603d84b134eb705f10.tar.bz2 ec327-lab2-1c03e941f1015c48917ddc603d84b134eb705f10.zip |
Diffstat (limited to 'Q1.cpp')
-rw-r--r-- | Q1.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -10,7 +10,7 @@ int main() double input; double sq, mysq; - do { // + do { cout << "Enter a number (negative to quit)" << endl; cout << ">> "; cin >> input; @@ -21,7 +21,6 @@ int main() cout << "sqrt(" << input << ") = " << sq << endl; cout << "sqrt and mysqrt differ by " << abs(sq - mysq) << endl; } - } while (input >= 0); return 0; |