0

can anyone tell my prooblem in thatc code?

problem https://code.sololearn.com/cMEkMgHLP81g/?ref=app

7th Jan 2018, 5:56 PM
Rahul guha
Rahul guha - avatar
5 Answers
+ 1
With ^, did you mean to exponentiate something? Because ^ is a binary operator. Include the <math.h> header, and use the pow(num1, num2) function. Example: pow(4, 2); // = 16
7th Jan 2018, 6:05 PM
LunarCoffee
LunarCoffee - avatar
+ 1
ok thanks man
7th Jan 2018, 6:06 PM
Rahul guha
Rahul guha - avatar
7th Jan 2018, 6:11 PM
Rahul guha
Rahul guha - avatar
+ 1
it is coming 0 but shold come 1.732 when given the value of 2 to each side
7th Jan 2018, 6:11 PM
Rahul guha
Rahul guha - avatar
+ 1
solved
7th Jan 2018, 6:12 PM
Rahul guha
Rahul guha - avatar