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

11 lines
184 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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");
}