RosettaCodeData/Task/Conditional-structures/SNUSP/conditional-structures-4.snusp
2014-01-17 05:34:36 +00:00

8 lines
170 B
Text

var nodiv3 = 13;
if nodiv3 % 3 == 0 {
print("divisible by 3");
} else if nodiv3 % 3 == 1 {
print("gives 1 remainder");
} else {
print("gives 2 remainder");
}