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
Get step-by-step solutions from verified subject matter experts
