Make ticket1 -> ticket and quantity1 -> quantity
Give more descriptive names for the variables
Make it calc the prize only when showing
Make it define the prizes outside the loop (only once)