Your for loop will execute if y is equal to 10. You initialize y to 0 then check to see if y =10, if y= 10 it will execute the body. Since y does not equal 10, the body never executes. Make it so y less than 10 or less than or equal 10 and it will execute.