Write a program to compare two strings
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str1 = "hello", str2 = "world";
if (str1 < str2)
cout << str1 << " is less than " << str2 << endl;
else if (str1 > str2)
cout << str1 << " is greater than " << str2 << endl;
else
cout << str1 << " is equal to " << str2 << endl;
return 0;
}