RosettaCodeData/Task/Integer-comparison/ChucK/integer-comparison.chuck

9 lines
287 B
Plaintext

fun void intComparison (int one, int two)
{
if(one < two) <<< one, " is less than ", two >>>;
if(one == two) <<< one, " is equal than ", two >>>;
if(one > two) <<< one, " is greater than ", two >>>;
}
// uncomment next line and change values to test
// intComparison (2,4);