spoj-WA in CNEASY

, , , , ,

The link to my code is sWkesO - Online C Compiler & Debugging Tool - Ideone.com
I am not able to understand why my code is showing wrong answer.