From 2b81e1c3095b8177b726c5a00b94af1270c3efe0 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Thu, 21 Feb 2019 08:56:55 -0600 Subject: Forget to commit things --- ee1301/wk3/lab3/RootBabylonOG.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ee1301/wk3/lab3/RootBabylonOG.cpp') diff --git a/ee1301/wk3/lab3/RootBabylonOG.cpp b/ee1301/wk3/lab3/RootBabylonOG.cpp index 07c1951..e97ff49 100644 --- a/ee1301/wk3/lab3/RootBabylonOG.cpp +++ b/ee1301/wk3/lab3/RootBabylonOG.cpp @@ -16,7 +16,7 @@ double gennewGuess(double n, double old_guess) { } } int main () { - double temp, temp2; + double temp; cout << "Enter the Number to find square root: "; cin >> temp; if (temp<=0) { @@ -25,7 +25,6 @@ int main () { } cout << "Guessing..." << endl; double real=sqrt(temp); - temp2=temp; temp = gennewGuess(temp, 1.0); cout << "The Final Guess: " << temp << endl << "Actual Value: " << real << endl; -- cgit v1.2.3