Authors: MUNAIR
This is a game created by Munair for Ping Pong #Specifications
-
Get input from the user.
Example input:
15
-
Return to the user a range of numbers from 1 to the inputted number.
Example output:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,]
-
Replace the numbers divisible by 3 with "ping".
Example output:
[1, 2, ping, 4, 5, ping, 7, 8, ping, 10, 11, ping, 13, 14, ping,]
-
Replace the numbers divisible by 5 with "pong".
Example output:
[1, 2, ping, 4, pong, ping, 7, 8, ping, pong, 11, ping, 13, 14, ping pong,]
-
Replace the numbers divisible by 15 with "pingpong".
Example output:
[1, 2, ping, 4, pong, ping, 7, 8, ping, pong, 11, ping, 13, 14, ping pong pingpong]
-
Allow the user to enter a new number and get new results.
Example input:
5
- HTML
- CSS
- JavaScript *jqueary
Make sure you have git installed. On the terminal, navigate to your workspace directory and run
$ git clone https://munail.github.io/IP3/
We welcome pull requests
This project is released under the MIT License Add Comment Collapse