the last 5 hours ive been trying to figure out how to write a single program that can arrange 4 numbers ,that the user will give,in descending,ascending and the order-that-were-given order.
So far i have written 3 different programms for each occasion using the insertion sort algorithm.
However i noticed that im asked to write this program using !only! functions.
I have done a lot of research and i find out nothing except for bubble sort and if-else statements which are very unpractical.
Are there any functions that i can use to write my program,that im not aware of?
I gave up searching,my eyes hurt.