Started turning the ContentView -> PaceResults calculations into functions but as of this commit they don't work so it contains many errors. Also DID make the seconds work properly so 0:00:300 properly wraps to 0:05:00, and likewise, 0:00:86400 properly wraps to 24:00:00.
This commit is contained in:
parent
addcb49778
commit
743d9cff0e
4 changed files with 46 additions and 8 deletions
14
FizzBuzz.playground/Contents.swift
Normal file
14
FizzBuzz.playground/Contents.swift
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
for i in 1...100 {
|
||||
if i.isMultiple(of: 3) && i.isMultiple(of: 5){
|
||||
print("FizzBuzz")
|
||||
}
|
||||
else if i.isMultiple(of: 3) {
|
||||
print("Fizz")
|
||||
}
|
||||
else if i.isMultiple(of: 5) {
|
||||
print("Buzz")
|
||||
}
|
||||
else{
|
||||
print(i)
|
||||
}
|
||||
}
|
||||
4
FizzBuzz.playground/contents.xcplayground
Normal file
4
FizzBuzz.playground/contents.xcplayground
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<playground version='5.0' target-platform='ios' buildActiveScheme='true' importAppTypes='true'>
|
||||
<timeline fileName='timeline.xctimeline'/>
|
||||
</playground>
|
||||
Loading…
Add table
Add a link
Reference in a new issue