Question: Python Statement Given a three-digit integer X consisting of three different digits, print YES if its three digits are going in an ascending order from

Statement Given a three-digit integer X consisting of three different digits, print "YES" if its three digits are going in an ascending order from left to right and print "NO" otherwise. Example input #1 179 Example output #1 YES Example input #2 197 Example output #2 NO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
