// define.c
#include <stdio.h>

#define MAX_SCORE_SIZE 8
#define SWAP(x, y) (y = x - y, x -= y, y += x)

int main(void)
{
    int score[MAX_SCORE_SIZE]={40,60,10,0,50,70,20,30};

    for (int i = 0; i < MAX_SCORE_SIZE - 1 ; ++i) {
        for (int j = 0; j < MAX_SCORE_SIZE - 1; ++j) {
            if (score[j] > score[j+1]) {
                SWAP(score[j], score[j+1]);
            }
        }
    }
    
    for (int i = 0; i < MAX_SCORE_SIZE; ++i) {
        printf("score[%d]: %d\n", i, score[i]);
    }

    return 0;
}