Getting 0 as output

please correct my code and tell me the mistakes