Hello there, welcome again!
In this WSQ #13 we had to write a program which do the following:
“The function should receive a number and return floating point number. Obviously you should test your function, so create a main program that asks the user a value, calculates the square root and displays that.”
So I had to do some research and a really cool video in Youtube help me a lot! From the tutorial I just had to change double to float and put a “Cin” so the user could type in the number that he wants.
This is the tutorial that helped me out!
And as always, Clic on Batman to see my code!
Here is a screenshot of the program running:
Stay true!
-The Admin.
Babylonian Method for Square root by esaupreciado is licensed under a Creative Commons Attribution 4.0 International License.