hey,guys

i was solving this question but i had doubt,

int ans1=0,ans2=0;

ans1 += ceil((x*0.1)/(2*0.1));

ans2 += (x+1)/2;

why ans1 and ans2 gives different ans?

if x is odd

ans1 = odd/2 = 3/2 = 2

ans2 = odd+1/2 = 3+1/2=2

If even

ans1 = even/2 = 4/2 =2

ans2 = even+1/2 = 4+1/2=2

i submitted using both one got AC and one WA