Sir this code is not working .. pls tell whats the error in it

hello @Vaibhav277
image

this should be
n=n>>1;

okay… thank you sir