main.m371 chars12 lines
The above code will continually prompt the user to input a value between 0 and 80 until they comply. If the original user input value is greater than 80, the code will subtract 5 from it until it falls within the 0-80 range. If the original user input value is less than 0, the code will add 10 to it until it falls within the 0-80 range. The final value is then displayed.
gistlibby LogSnag