View Code of Problem 75

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
  int n[10];
  for(int j=0;j<10;j++)
    scanf("%d",&n[j]);
  sort(n,n+10);
  for(int j=0;j<10;j++)
    printf("%d\n",n[j]);
  return 0;
}

Double click to view unformatted code.


Back to problem 75