๐Control Flow WorkshopWORKSHOP
1
2
3
4
5
Step 1
Write a function `classify(n int) string` that returns "negative", "zero", or "positive" using if/else if/else. Call it on -5, 0, 7 and print results.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)
Step 1
Write a function `classify(n int) string` that returns "negative", "zero", or "positive" using if/else if/else. Call it on -5, 0, 7 and print results.