Question: Program written in C Write a program that takes 3 numbers as input and sort them in increasing order. Use three double type variables to

Program written in C

Program written in C Write a program that takes 3 numbers as

Write a program that takes 3 numbers as input and sort them in increasing order. Use three double type variables to store the input numbers. After sorting, place the smallest number in the first variable, second largest number in the second variable and largest number in the third variable you initially declared. You can use extra variables, but the final print command should use the initial three variables you declared. Sample Input and Output: (Your code should print the red texts on the screen. Black texts are sample user inputs) Sample Input Sample Output Enter Number1: 2.39 Enter Number2: 3.24 Enter Number3: 1.78 After sorting: Number1: 1.78, Number2: 2.39, Number3: 3.24 Enter Number1: 125.34 Enter Number2: 78.01 Enter Number3: 125.34 After sorting: Number1: 78.01, Number2: 125.34, Number3: 125.34

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!