java, ch5, reads in 3 integers , prints “in order” if they are in ascending or descending order,

Опубликовано: 09 Октябрь 2024
на канале: RioProfessor Liu
1,895
14

Write a program that reads in three integers and prints “in order” if they are sorted in ascending or descending order, or “not in order” otherwise. For example,

1 2 5 in order

1 5 2 not in order

5 2 1 in order

1 2 2 in order