728x90
๋ฐ์ํ
100์ผ๋ก ๋๋ ์ง๋ ํจ์ ์์ฑํ๊ธฐ
//ํต์ฌ %๋ฅผ ์๊ณ ์๋๋
func divisible(_ num: Int) -> Bool {
return num%100 == 0
}
728x90
๋ฐ์ํ
'๐ Problem Solution' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Edabit Very Easy Swift (0) | 2020.01.18 |
---|---|
Edabit Very Easy Swift (0) | 2020.01.17 |
๋ฐฑ์คํ๋ก๊ทธ๋๋ฐ 2๋จ๊ณ 1,2,3,4,5,6๋ฒ Swift (0) | 2020.01.16 |
๋ฐฑ์ค์๊ณ ๋ฆฌ์ฆ 1๋จ๊ณ 6,7,8,9,10,11 Swift (0) | 2020.01.14 |
[Swift] ๋ฐฑ์คํ๋ก๊ทธ๋๋ฐ 1๋จ๊ณ 1,2,3,4,5๋ฒ (0) | 2020.01.13 |
๋๊ธ