The condition ((y/(y++)==0)&&(y/(y++)==1)) will never be true. The expression y++ always evaluates to the value of y before the increment, so y/(y++) evaluates to y/y, i.e. 1. So (y/(y++)==0) is always false, which means the entire condition is always false.