Computer Science, asked by suryateja21, 5 months ago

Write a program in c to short elements of an array in ascending order​

Answers

Answered by naashitnaas10
1

Answer:

STEP 1: START.

STEP 2: INITIALIZE arr[] ={5, 2, 8, 7, 1 }..

STEP 3: SET temp =0.

STEP 4: length= sizeof(arr)/sizeof(arr[0])

STEP 5: PRINT "Elements of Original Array"

STEP 6: SET i=0. REPEAT STEP 7 and STEP 8 UNTIL i<length.

STEP 7: PRINT arr[i]

STEP 8: i=i+1.

Similar questions