Pretty much what Kevin said. When you declare the variable "appleCost" im guessing your code says
int appleCost; try putting
int appleCost = 0;