An ascending integer occurs when each digit is greater than any digit that precedes it. An example is
478. Write a program that finds the number of ascending integers between 200 and 300.
I know how to do basic while loops but cannot figure out how to separate a number and determine if it is an ascending integer.
After thinking about this problem, I got to this solution.
thank god for 0!
Hmm there's an extraneous 300 in there, how strnage
@Coder100 he asked for number of, not the exact numbers (and your answer also doesn't work) but literally just 6+5+4+3+2+1 (21) is your answer
basic permutation as such:
23 ,4-9: 6 possibilities
24 ,5-9: 5 possibilities,
Your script gave these numbers:
some such as
280 aren't ascending, and you also missed a few