- A function named
dogthat prints out "Woof!" to the screen. - A function named
catthat prints out "Meow." to the screen. - A function named
hello_namethat takes a string as input and prints out "Hello, name!" wherenameis the string given as input. - A function named
even?that takes a number as input and returns true if the number is evenly divisibly by 2 and false otherwise. - A function named
multiple_of?that takes 2 inputs. For example:multiple_of?(2, 4)returnstruebecause 4 is a multiple of 2 (2*2 = 4).multiple_of?(5, 32)returns false because 32 is not a multiple of 5. - A function named
countthat takes a number as input and prints out all the numbers between 0 and number to the screen. - A function named
multiplesthat takes a number as input, and returns an array containing all results of the given number multiplied by the numbers from 1 to 10. So formultiples(5)the result should be[5,10,15,20,25, ...]
Last active
August 29, 2015 14:25
-
-
Save joeletizia/985281ba3f397eef156e to your computer and use it in GitHub Desktop.
Dakarai Homework
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment