Clutch Master
Clutchy McClutchington   United States
 
 
#include <stdio.h>

#define SIZE 8

int main(void)
{
int numbers[SIZE] = { 4, 15, 16, 50, 8, 23, 42, 108 };

// Prints the unsorted list

for (int i = 0; i < SIZE; i++)
{
printf("%d ", numbers );
}
printf("\n");

int swaps;

do
{
swaps = 0;

for (int i = 0; i < (SIZE - 1); i++)
{
if (numbers > numbers )
{
// Swaps the two values

int temp = numbers ;
numbers = numbers ;
numbers = temp;
swaps++;
}
}
}
while (swaps != 0);

// Prints the sorted list

for (int i = 0; i < SIZE; i++)
{
printf("%d ", numbers );
}
printf("\n");
}
Comments
Azam 27 Jul, 2017 @ 1:32pm 
● .  ★  ★ ° ☾ ☆ ¸. ¸  ★  :.  . • ○ ° ★  .  * . .
  ¸ .   °  ¸. * ● ¸ . ...somewhere   ° ☾ °  ¸. ● ¸ .  ★ ° :.
  . • °   .  * :. . ¸ . ● ¸    ★  ★☾ °★ .    
 .  °☆  . ● ¸ .   ★ ° .  • ○ ° ★  .      
 * .  ☾ °  ¸. ...over the rainbow* ● ¸     ° ☾ °☆  . * ¸.   ★ ★ ° . . 
  ¸ .   °  ¸. * ● ¸ . ...way up high   ° ☾ ★ ° .
  . • °   .  * :. . ¸ . ● ¸    ★  ★☾ °★ .   ★ ° . .    . ☾ °☆  . * ● ¸ .   ★ ° :.  . • ○ you're a ♥♥♥♥♥♥.. .   °  . ● .    ° ☾ °☆  ¸.
● .  ★  ★ ° ☾ ☆ ¸. ¸  ★  :.  . • ○ ° ★  .  * . .
  ¸ .   °  ¸. * ● ¸ .    ° ☾ °  ¸. ● ¸ .  ★
Immense Joshua 14 May, 2017 @ 2:43pm 
♥♥♥♥♥♥. still doing this for a steam badge
Azam 27 Dec, 2016 @ 1:35pm 
░░░▄▄▀▀▀▀▀▀▀▀▄▄
░░█░░░░░░░░░░░░█
░█░░░░░░░░░░░░░░█
█▀▀██▐███▀▀██▐████
█░░█▌████░░█▌█████
█░░░▀▀▀▀░░░░▀▀▀▀░█
█░░░░█░░░░░░░░█░░█
█░░░░░█░░░░░░█░░░█
░█░░░░░▀▀▀▀▀▀░░░█
░░█░░░░░░░░░░░░█
░░░▀▀▄▄▄▄▄▄▄▄▀▀
It's COOL to be gay!
Post this on the wall of a homosexual friend and tell them how COOL they are
Enlooten | Joseph 11 Jun, 2015 @ 10:14pm 
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓ U HAV BEEN SPOOKED
▓▒▒▒▒▒▓▓▓▒▒▒▒▒▓▓▓ BY SPOOKY BUTTE
▓▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▓ BUTTES WILL EAT YOU
▓▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▓
▓▒▒▒▒▓▓▓▓▒▓▓▓▓▓▓▓
▓▒▒▒▒▓ ▓▒▒▒▒▓
▓▒▒▒▒▓ ▓▒▒▒▒▓
▓▒▒▒▒▓ ▓▒▒▒▒▓
▓▒▒▒▒▓ ▓▒▒▒▒▓ SEND THIS TO 7PPL OR BUTES WILL EAT YOU
▓▒▒▒▒▓ ▓▒▒▒▒▓