View Code of Problem 78

#include <stdio.h>
#include <iostream>
#include <string.h>
#include <string>
#include <algorithm>
#include <iomanip>
#include<vector>
#include<math.h>
using namespace std;
int main()
{
	string s[3];
	cin >> s[0] >> s[1] >> s[2];
	sort(s, s + 3);
	cout << s[0] << endl << s[1] << endl << s[2];

}

Double click to view unformatted code.


Back to problem 78