1. Course
  2. Arrays
  3. Bubble sort

Bubble sort


Last updated: 8/23/2020 Difficulty: Intermediate

Create a C# program that requests 10 integers from the user and orders them by implementing the bubble sort algorithm.

Input

7
8
6
2
3
2
4
1
8
4

Output

1 2 2 3 4 4 6 7 8 8

Solution

Arrays

6 / 11

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising