Hello,

i initialize with 0 so first print 0 then

its comes next if statement it checks with i value

if its odd means it will give 1

otherwise 0