This is a collection of familiarization exercises in Swift. They'll suffer from ignorance of writing idiomatic code. My goal is to iterate on these as fluency develops and leave them up for the brave.
In short:
- Caveat Lector
- Don't Be A Jerk
Yours Truly,
Erik Hollembeak
// Is that ok?
func number(){
for i in 1...100{
if i % 3 == 0 && i % 5 == 0{
print("Divided by both 3 & 5")
continue
}
else if i % 3 == 0{
print("Divided by 3")
continue
}
else if i % 5 == 0{
print("Divided by 5")
continue
}
number()