0
Get a square root without using sqrt function in c++
How do I do this?
9 odpowiedzi
+ 12
Thanks to Eligijus
https://code.sololearn.com/cF3zJhK2h2cO/?ref=app
+ 7
Technically speaking pow(x, 0.5) is a square root function
+ 6
Homework?
+ 1
// Try this
int x = 16;
cout << pow(x, 0.5);
+ 1
Yeah the homework says not to use "native functions".. Have no idea exactly what is supposed to not be used.
+ 1
Thank you so much!
0
Yeah..
0
Thanks I will test it out.