Write a program that declares an array of 5 elements and uses a loop to assign the values 1.1, 1.2, 1.3, 1.4, and 1.5 to them. Next, the program should display the array's elements in reverse order.
Input:
1.1 1.2 1.3 1.4 1.5
Output:
1.5 1.4 1.3 1.2 1.1
References: C From Theory