RosettaCodeData/Task/Conditional-structures/SNUSP/conditional-structures-4.snusp

9 lines
170 B
Plaintext

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