summaryrefslogtreecommitdiff
path: root/Q1.cpp
diff options
context:
space:
mode:
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;