Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ssnickolay/buzzfeed

buzzfeed
https://github.com/ssnickolay/buzzfeed

Last synced: about 2 months ago
JSON representation

buzzfeed

Awesome Lists containing this project

README

        

BUZZFEED
=======

Print on the screen, the numbers 1 to 10000.

Numbers that are divisible by 3 should print out Buzz

Numbers that are divisible by 5 should print out Feed.

Numbers that are divisible by 3 and 5 should print BuzzFeed

TEST
=======

```sh
$ rspec rspec/buzz_feed_spec.rb
```

RUN
======

```sh
$ ruby run.rb
=>
Print number =
1000
1
2
Buzz
4
Feed
Buzz
7
8
Buzz
Feed
11
...
```