Write the code to sort and output them in decending order
integer array(5) temps
integer i
integer k
integer tmp
for k = 0; k<5; k="k" +="">5;>
temps[k] = -1000
for i = 0; i < 5;="" i="i" +="">
temps[i] = Get next input
for k = 0; k < i;="" k="k" +="">
if temps[k] > temps[i]
tmp = temps[k]
temps[k] = temps[i]
temps[i] = tmp
Put "temps input are: \n" to output
Put temps[i] to output
Put " " to output Put "\n" to output
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here