There is no logical error in my code


I ran this code in my eclipse and it ran perfectly fine please help me