wilyarti / logic_test

FooBar coding test.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logic_test

FooBar coding test.

It meets the following requirements:

Output the numbers from 1 to 100

  • Where the number is divisible by three (3) output the word “foo”
  • Where the number is divisible by five (5) output the word “bar”
  • Where the number is divisible by three (3) and (5) output the word “foobar”
  • Only be a single PHP file

Requirements

This script requires PHP only.

About

FooBar coding test.


Languages

Language:PHP 100.0%