Advertisement
shawonrog

Bubblesort in shell programming

Jun 25th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. echo "Enter array size: "
  2. read n
  3. echo "Enter value: "
  4. for((i=1;i<=n;i++))
  5. do
  6. read B[i]
  7. done
  8. for((i=1;i<=n;i++))
  9. do
  10. for((j=1;j>n-i;j++))
  11. if(A[
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement