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

 Python Statement Given a three-digit integer X consisting of three different

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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!