#include <stdio.h>
void swap(int *A,int *B) {
    int swaper = *A;
    *A = *B;
    *B = swaper;
}
int main() {
    int X = 0;
    int Y[] = {1,1,4,5,1,4};
    loop:
    if (Y[X] > Y[X+1]) {swap(&Y[X],&Y[X+1]);X = 0;}
    X++;
    if (X < 5) {goto loop;}
    X = 0;
    loop2:
    printf("%d\n",Y[X]);
    if (X < 5) {X++;goto loop2;}
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: