RosettaCodeData/Task/Integer-comparison/Sparkling/integer-comparison.sparkling
2016-12-05 23:44:36 +01:00

10 lines
184 B
Text

let a = 13, b = 37;
if a < b {
print("a < b");
} else if a > b {
print("a > b");
} else if a == b {
print("a == b");
} else {
print("either a or b or both are NaN");
}