Thu Nov 13, 2008 1:56 pm
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
// Read and test three values.
cin >> a >> b >> c;
// Run some BOGUS tests.
cout << a << " < " << b << " < " << c << ": ";
if(a < b < c) cout << "Yes.";
else cout << "No.";
cout << endl;
cout << a << " == " << b << " == " << c << ": " << endl;
if(a == b == c) cout << "Yes.";
else cout << "No.";
cout << endl;
cout << a << " > " << b << " > " << c << ": " << endl;
if(a > b > c) cout << "Yes.";
else cout << "No.";
cout << endl;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.