Getting wrong output


please find flaw in my code and how to correct it as i am not getting correct ans

Check line 21,
It must be data=d;