bubble sort time complexity

C
O(n^2)
Source

Also in C: