Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Counting Fingers Drill
- fingers = ["Thumb", "Index", "Middle", "Ring", "Pinkie"]
- function main(n::Int64)
- if n < 1; println("She can't count non-positive numbers!"); return ""; end
- x = n % 8
- if x == 0
- x = 2
- elseif x == 7
- x = 3
- elseif x == 6
- x = 4
- end
- return fingers[x]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement