Please tell me why my input and output are not the same in this code. cents is always zero and the symbol is not defined!