← go back

HELP I FOUND THIS IN MY FRIEND’S CODE I DON’T KNOW WHAT TO DO WITH HIM

while (price != 0); {price-25 = quarter++}
   while (price != 0 && price<=1); {price-1 && penny++}    
   while (price != 0 && price<=25); {price-10 && dime++}
   while (price != 0 && price<=5); {price-5 && nickel++}
Oct 10, 2024, 10:35 PM
4 1 2

Comments