+ 4
How can i get square root of any number?
10 Respuestas
+ 5
+ 10
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int num = 10;
cout << "Square Root of " << num << " is: "<< sqrt(num) << endl;
return 0;
}
+ 6
to find a squar root in java use a function called.
Math.sqrt ();
+ 3
On python:
import math
math.sqrt()
+ 2
is it possible to get square root on c++ ?
+ 2
nAutAxH AhmAd thank you very much.
+ 1
if you want to do it without any builtin function using loops, you may want to look at newton method.
0
Study Math on Python it might help you.
0
raise the number by 1/2
in python, assuming the number is going to be inputed
x = int(input())
y = x**(1/2) #if it's cube root 1/3
print(y)
0
simply type
sqrt(a,2)