Code to Check Whether the Entered String is Positive or Not.
A string is considered a positive string, if on moving from left to right each character in the String comes after the previous characters in the Alphabetical order. For Example ANT is a positive String (Since T comes after N and N comes after A) APPLE is not positive since L comes before P in the alphabetical order.
No comments:
Post a Comment