I want to apply more than one while loop so it can do the calculations below but within the given range. eg. p_fifties-= fifties
must calc while it is between 0 < x < 10
. So when it's more than 10 it must do the next calculation.
I was wondering if I can add more than one while loop at the end so it gives a range for each calculation. Is it possible?
do{
p_fifties -= fifties;
p_twenties -= twenties;
p_tens -= tens;
} while();