Nondecreasing digits

Write a function nondec(n)nondec(n) that receives an integer n>0n>0 and reports whether its digits (in base 10) form a nondecreasing sequence (that is, each digit is greater or equal to the previous one).

Problem information

Author: ProAl1

Generation: 2026-01-25T13:56:21.342Z

© Jutge.org, 2006–2026.
https://jutge.org