Not getting correct output


please tell me the mistakes and how to correct it