Question: Write a C program to sort 3 real numbers entered by user in ascending order. Define and use the following function for sorting and then

Write a C program to sort 3 real numbers entered by user in ascending order.

Define and use the following function for sorting and then print final values in main function.

void sort3( float *, float *, float * );

EXAMPLE OUTPUT :

Enter 3 numbers: 24.5 16.11 7.9

-------------------------

After sorting = 7.9 16.11 24.5

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!