Only integral part is being printed out
@kunaldude04 it is because the return type of function squareroot is int, it should be float.
Also, the variable sqroot should be of type float and not int.
Hope this helps.
@kunaldude04 it is because the return type of function squareroot is int, it should be float.
Also, the variable sqroot should be of type float and not int.
Hope this helps.