When I try to run this code through the compiler, I get the error:
expression result unused
referring to the line
cents - 25;
How do I fix this error? How exactly do I "use" the expression result? I tried assigning it to a variable, but that didn't work because the variable cents
wasn't updated so the loop kept running forever.
while (cents > 25)
{
cents - 25 ;
count++ ;
}