Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 288 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 288 Bytes

Oh foo-ie!

Write a function that takes in an integer n, and prints out integers from 1 to n inclusive. If %3 == 0 then print "foo" in place of the integer, if %5 == 0 then print "ie" in place of the integer, and if both conditions are true then print "foo-ie" in place of the integer.