What is the output if the input is diamond diamond


Suppose that you have the following statements:
string str1, str2;
cin >> str1 >> str2;
if (str1 == str2)
cout << str1 + '!' << endl;
else if (str1 > str2)
cout << str1 + " > " + str2 << endl;
else
cout << str1 + " < " + str2 << endl;
Answer the following questions.
a. What is the output if the input is diamond diamond?
b. What is the output if the input is diamond gold? 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What is the output if the input is diamond diamond
Reference No:- TGS0109887

Expected delivery within 24 Hours