View Code of Problem 76

#include<bits/stdc++.h>
using namespace std;
int main(){
	int c[10];
	int a;
	for(int i=0;i<9;i++){
		cin>>c[i];
	}
	cin>>a;
	c[9]=a;
	sort(c,c+10);
	for(int i=0;i<10;i++){
		if(i!=9){
			cout<<c[i]<<endl;
		}
		else{
			cout<<c[i];
		}
		
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 76