##Project Site: https://minneh.github.io/ping-pong.github.io/
This web application takes a number from a user and returns a range of numbers from 1 to the chosen number with the following exceptions:
- Numbers divisible by 3 are replaced with "ping"
- Numbers divisible by 5 are replaced with "pong"
- Numbers divisible by 15 are replaced with "pingpong"
Example Input: 5 Output: 1, 2, ping, 4, pong
The program requests numeric input from the user. The user enters this input which is then stored as the limiting variable. The program then loops through numbers beginning at one and ending at the user's number, checking at each iteration whether the number is divisible by 3, 5 and/or 15. If the current number is found to be divisible by any of the aforementioned numbers, the corresponding output (as outlined above) is given to the user in list format.
#Technologies Used:
- HTML
- CSS
- JavaScript
#Setup:
- Open your preferred browser
- Head to the url https://minneh.github.io/ping-pong.github.io/
- Begin playing!
#Contributing
I welcome pull requests
Website created on 24th February 2017
Credits to Moringa School