Get two natural number and combine them into one number
1 | func stickTwoNaturalNumbers(firstNumber: Int, secondNumber: Int) -> Int { |
Compare two strings are the same or not
1 | func isSameLetter(firstLetter: String, secondLetter: String) -> Bool { |
Print every factors of input number
1 | func printDivisor(of number: Int) { |
Print every common multiple of three and five below one hundred
1 | func printCommonMultipleOfThreeAndFive() { |
Determine the number that is prime number or not
1 | func isPrime(number: Int) -> Bool { |
Gets a natural number and returns the number in the order of the number in the Fibonacci sequence
1 | func getFibonacciNumber(of number: Int) -> Int { |
Determine the year that is leap year or not
1 | func isLeapYear(_ year: Int) -> Bool { |