The code prints "Pear" and "Apple" based on if/else statements checking the value of variable x, which is set to 80. It first checks if x is greater than 20, which it is, so it prints "Apple". It then checks if x is greater than 40, which it also is, so it prints "Pear". The values of variables i, j, and k are unchanged after the if statement runs since it does not modify their values.