please send me a program urgently

1.accept 5 parameters to the program. these 5 arument values into an array which is being defined as numeric type.
3.sort the numbers in the array in ascending order and print them.
4.sort the numbers in the array in desecending order and print them.

ans) upto 2 point

define args ARRAY[5] of smallint
define i smallint
for i = 1 to 5
let args[i] = arg_val [i]
end for