Kindly check my code

my code is showing run error please check

what is the logic that u are using ???