Output is not showing, but code runs correct

This picture shows that the code is correct but, when running it shows an error.
i couldn’t sort out the error. Can anyone help?