Created
May 9, 2022 20:37
-
-
Save mitnick78/bcd937d8725e2905241c17db460a20d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func animals(_ chicken: Int,_ cow:Int, _ pigs: Int) -> Int { | |
let legsTwo = 2 | |
let legsFour = 4 | |
let c = legsTwo * chicken | |
let v = legsFour * (cow + pigs) | |
print(c + v ) | |
return c + v | |
} | |
animals(1, 2, 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment