/R_ping_pong

Ruby week 1

Primary LanguageRuby

pingpong

Spec

behavior input output
Determine whether number is divisible by 15 15 [1, 2, "ping", 4, "pong", "ping", 7, 8, "ping", "pong", 11, "ping", 13, 14, "pingpong"]
Determine if number is divisible by 5 5 [1, 2, "ping", 4, "pong"]
Determine if number is divisible by 3 3 [1, 2, "ping"]
Return number if number is not divisible by 3 or 5 7 7