how to create an array of multiples of 5 and display it in reverse

63 Views Asked by At

Make 1D array with appropriate size and input the values with below condition: 1)number below 100 2)which are multiple of 5. 3)Then Print it in reverse order.

I was successful in printing it in ascending order. But need it reversed. My output: 005 010 015 020 025 030 035 040

Expected: 40 35 30 25 20 15 10 5

0

There are 0 best solutions below