int cmpVal = str1.CompareTo(str2);
if (cmpVal == 0)
return "The strings have the same value!";
else if (cmpVal > 0)
return "The first string is greater than the second string!";
else
return "The second string is greater than the first string!";
}
int cmpVal = str1.CompareTo(str2);
if (cmpVal == 0)
return "The strings have the same value!";
else if (cmpVal > 0)
return "The first string is greater than the second string!";
else
return "The second string is greater than the first string!";
}