void checkInt( int a, b; ) { println( a + " " + b ); if ( a < b ) println( "< true" ); else println( "< false" ); if ( a <= b ) println( "<= true" ); else println( "<= false" ); if ( a > b ) println( "> true" ); else println( "> false" ); if ( a >= b ) println( ">= true" ); else println( ">= false" ); if ( a == b ) println( "== true" ); else println( "== false" ); if ( a != b ) println( "!= true" ); else println( "!= false" ); } void checkReal( real a, b; ) { println( a + " " + b ); if ( a < b ) println( "< true" ); else println( "< false" ); if ( a <= b ) println( "<= true" ); else println( "<= false" ); if ( a > b ) println( "> true" ); else println( "> false" ); if ( a >= b ) println( ">= true" ); else println( ">= false" ); if ( a == b ) println( "== true" ); else println( "== false" ); if ( a != b ) println( "!= true" ); else println( "!= false" ); } void checkInt1( int a, b; ) { println( a + " < " + b + " = " + ( a < b ) ); println( a + " <= " + b + " = " + ( a <= b ) ); println( a + " > " + b + " = " + ( a > b ) ); println( a + " >= " + b + " = " + ( a >= b ) ); println( a + " == " + b + " = " + ( a == b ) ); println( a + " != " + b + " = " + ( a != b ) ); } void checkReal1( real a, b; ) { println( a + " < " + b + " = " + ( a < b ) ); println( a + " <= " + b + " = " + ( a <= b ) ); println( a + " > " + b + " = " + ( a > b ) ); println( a + " >= " + b + " = " + ( a >= b ) ); println( a + " == " + b + " = " + ( a == b ) ); println( a + " != " + b + " = " + ( a != b ) ); } println( "Checking operators" ); checkInt( 1, 2 ); checkInt( 2, 1 ); checkInt( 1, 1 ); checkReal( 1.0, 2.0 ); checkReal( 2.0, 1.0 ); checkReal( 1.0, 1.0 ); checkInt1( 1, 2 ); checkInt1( 2, 1 ); checkInt1( 1, 1 ); checkReal1( 1.0, 2.0 ); checkReal1( 2.0, 1.0 ); checkReal1( 1.0, 1.0 );