#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
    
    int a[5] = {95, 75, 85, 100, 50};
    int tmp;
    
    for (int i = 0; i < 5-1; i++) {
             for (int j = i+1; j < 5; j++) {
                          if (a[i] > a[j]) {
                                    tmp = a[i];
                                    a[i] = a[j];
                                    a[j] = tmp;
                          }
             }
    }
    
    for (int i = 0; i < 5; i++) {
             printf("%d ", a[i]);
    }

    for (int i = 0; i <100; i++){
        printf("%d ", a[i]) ; 
        printf(" %d ", tmp);
    }
    printf("\n");
    
	return 0;
}

Embed on website

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