Use the Bubble Sort. Will give thumbs up for correct answer.
O Sort the following elements in non-decreasing order: 90, 12, 66, 11, 82,9, 2, 98 Show transcribed image text O Sort the following elements in non-decreasing order: 90, 12, 66, 11, 82,9, 2, 98
Solution
#include<stdio.h>void bubbleSort(int arr[], int n){ int i, j; double temp; printf(“Tracen—————–n”); for (i = 0; i < n – 1; i++) {
OR
OR