C++ 代码
#include <iostream>
using namespace std;
int main()
{
string a,b;
getline(cin, a);
getline(cin, b);
for(auto &c : a)
c = tolower(c);
for(auto &c : b)
c = tolower(c);
int m = a.compare(b); //若a按顺序先于b,则返回负值,即后者大
if(m < 0)
cout << '<' << endl;
else if(m > 0)
cout << '>' << endl;
else
cout << '=' << endl;
return 0;
}