please read the comments , you will get what problem i am facing
Pow function output
as 1 and 2 both are integer so 1/2 will also be integer
use this double p=(1.0/2);
you get desired output
i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask
okay thanks i got it