// "Silver chalenge" from page 59 of "Swift Programing" by
// Mathew Mathias & John Gallagher
// Print 1-100, if Number divisable by 3, print "Fizz", if the
// the number is divisable by 5 print "Buzz", if the number is
// divisable by both 3 and 5 then print "Fizz Buzz" if neither
// print the number.
//
// Coty Millers "solution" - 19Aug17
import Cocoa
var fizzBuzz: Int = 1
repeat {
if fizzBuzz % 3 == 0 {
if fizzBuzz % 5 == 0 {
print("buzzFizz")
}
else {
print("fizz")
}
}
else if fizzBuzz % 5 == 0 {
print("buzz")
}
else {
print(fizzBuzz)
}
fizzBuzz += 1
} while fizzBuzz <= 100