What is the error with my code?

please explain my error… here is my code

hello @Anku47
ur logic is wrong.
u have misunderstood the problem.
pls read this carefully
image