main.m370 chars9 lines
In the above code blocks, we used a while loop to keep checking if the uservalue is less than 0 or greater than 80. If it is true, then we used conditional statements (if-else) to perform the required arithmetic operation on the userValue. The while loop only stops iterating when the uservalue is within the specified range (0 to 80).
gistlibby LogSnag