#include <iostream>
#include <string>
usingnamespace std;
int main()
{
Int a, b,c;
string j,k;
j = "a is greater than the b";
k = "b is greater than the a";
cout << "enter the value of a: "; cin >> a;
cout << "\n";
cout << "enter the value of b: "; cin >> b;
c= (a>b) ? j:k;
cout << c;
return 0;
}
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
int a, b;
string j, k, l;
j = "a is greater than the b";
k = "b is greater than the a";
cout << "enter the value of a: "; cin >> a;
cout << "\n";
cout << "enter the value of b: "; cin >> b;
l = ( a > b ) ? j : k;
cout << l << endl;
return 0;
}