Skip to content

Instantly share code, notes, and snippets.

View vicxruiz's full-sized avatar

Victor Ruiz vicxruiz

View GitHub Profile
@vicxruiz
vicxruiz / Challenge1
Created April 24, 2019 15:16
LambdaSchool
func numberOfVowels(in string: String) -> Int {
var numberOfVowels: Int = 0
for x in string {
if x == "a" || x == "e" || x == "i" || x == "o" || x == "u" {
numberOfVowels += 1
}
}
return numberOfVowels
}