Output is getting wrong.please check my code and tell where iam doing wrong


i have modified your code you can see it

still the output is wrong