View Code of Problem 76

#include<bits/stdc++.h>
using namespace std;
#define max 100000

int main(){
	int a[10] = {  };
	
	for(int i = 0;i<9;i++)cin>>a[i];
	cin >>a[9];
	sort(a,a+10);
	for(int i = 0;i<10;i++){
		if(i==9)cout<<a[i];
		else cout<<a[i]<<endl;	
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 76