creating the conditions, use if and else if functions for it:
for example:
#include <iostream>
using namespace std;
int main () {
float a, b;
cout << "insert 1st: ";
cin >> a;
cout << "insert 2nd: ";
cin >> b;
if (a > b)
cout << "1 > 2" << endl;
else if (a < b)
cout << "1 < 2" << endl;
else
{
cout << "1 = 2" << endl;
}
return 0;
}