Not getting the correct answer


please correct my code, code not giving the correct output

Made changes in ur code: