+ 3

Suppose int x=36 but i want to print square root of variable x then how should i give instruction to print square root of x .

25th Apr 2017, 3:05 PM
Harsh
Harsh - avatar
5 odpowiedzi
25th Apr 2017, 3:41 PM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 16
#include <cmath> and do cout << sqrt(x); .
25th Apr 2017, 3:08 PM
Hatsy Rei
Hatsy Rei - avatar
+ 5
@Harsh Jaiswal, Thanks for Best Answer! 👏👏👏
13th May 2017, 10:53 AM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 1
i dont know please anyone answer me
25th Apr 2017, 3:06 PM
Harsh
Harsh - avatar
0
int y = 0; int x = 0; cin« x; y = x*x; cout» y;
18th May 2017, 6:53 AM
shem