RosettaCodeData/Task/Integer-comparison/Sparkling/integer-comparison.sparkling

11 lines
184 B
Plaintext

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");
}