Program: Write a program that orders three double numbers by increasing value. The program should include a function named sort3 that takes three double * arguments (pointer to double). The function prototype is void sort3(double *x, double *y, double *z);
The function should reorder the values pointed to by its arguments so that after the call sort3(&x, &y, &z); x the numbers x,y,z satisfy x<=y<=z .
Your program should input data and print results using the following format:
Enter three numbers: 4.7 1.4 3.2
The ordered sequence is: 1.4 3.2 4.7
Prepare a program for sorting the numbers and the code must be error free and compile correctly on first attempt.