Ping-Pong

About Ping-Pong

Created by:

Kit Fisto

GitHub Username/URL:

greensaber

Level 2 Test for:

Java

Let's play!

Here are the rules:

Enter a positive integer in the space provided and numbers from 1 to your number will be displayed, some "ping-ponging" according to the following:

  • numbers divisible by 3 will be "ping"
  • numbers divisible by 5 will be "pong"
  • numbers divisible by 15 will be "ping-pong"