View Code of Problem 78

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	string str[3];
	for(int i=0;i<3;i++)
	  cin>>str[i];
	sort(str,str+3);
    for(int i=0;i<3;i++)
	  cout<<str[i]<<endl;	
}

Double click to view unformatted code.


Back to problem 78