Whats wrong in the if condition


#1

Comment body goes here.
can anybody plz tell me whats wrong is i use ceil(log2 (A)/log2 (i)) == floor(log2 (A)/log2 (i))
in my if condition,it gives wrong ans