summaryrefslogtreecommitdiff
path: root/Q1.cpp
diff options
context:
space:
mode:
authorMichael Abed <michaelabed@gmail.com>2012-03-05 14:28:10 -0500
committerMichael Abed <michaelabed@gmail.com>2012-03-05 14:28:10 -0500
commit1c03e941f1015c48917ddc603d84b134eb705f10 (patch)
treed89b07d63a12b5542882328c679bb76fb23a5f63 /Q1.cpp
parentf2566da91396bc07356601794fd5db858a78f1f3 (diff)
downloadec327-lab2-master.tar.gz
ec327-lab2-master.tar.bz2
ec327-lab2-master.zip
finish it all upHEADmaster
Diffstat (limited to 'Q1.cpp')
-rw-r--r--Q1.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Q1.cpp b/Q1.cpp
index 6b23316..31e57b6 100644
--- a/Q1.cpp
+++ b/Q1.cpp
@@ -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;