Use Bubble Sort Give Thumbs Correct Answer Q37049847

O Sort the following elements in non-decreasing order: 90, 12, 66, 11, 82,9, 2, 98

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.