Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write down the code that used in the PyCharm EDU Write a program that reads in three integers and prints ascending if they are

image text in transcribed

Please write down the code that used in the PyCharm EDU

Write a program that reads in three integers and prints "ascending" if they are sorted in ascending order, "descending" if they are sorted in descending order", or "not in order" otherwise. For example, 1. If the input is 1 6 10 your program should output ascending if the input is 10 3 1 your program should output descending if the input is 3 5 1 your program should output not in order TIP: You need to use 3 input statements to get the integers. In addition, first come up with your algorithm BEFORE you start programming

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions