Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

C PROGRAM!! Part 2: Ordering In this part, basic flow control (i.e. if statements) will be used to reorder three integers into ascending order. Prompt

C PROGRAM!!image text in transcribed

Part 2: Ordering In this part, basic flow control (i.e. if statements) will be used to reorder three integers into ascending order. Prompt the user to enter three integers. Determine and print the integers in ascending order (from least to greatest). The program must work for any three integers provided by the user. For example: Please enter an integer: -6 Please enter an integer 91 Please enter an integer: -12 The values are, in ascending order: -12, -6, 91 For example: Please enter an integer: .3 Please enter an integer 1 Please enter an integer:2 The values are, in ascending order: 1, 2, 3 Challenge: Make it so the user can specify the order in which the numbers are printed: ascending (smallest to largest) OR descending (largest to smallest) For example: Please enter an integer: 3 Please enter an integer: 1 Please enter an integer 2 Are the values to be presented in (A) ascending or (D) descending order: D The values are, in descending order: 3, 2, 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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