Ping Pong Project
-
A web application that takes a number from a user and returns a range of numbers from 1 to the chosen number with a few exceptions.
By Miami Larry
Description
- A web application that 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". Input 3, Output: [1, 2, "ping"].
- Numbers divisible by 5 are replaced with "pong". Input 5, Output: [1, 2, "ping", 4, "pong"].
- Numbers divisible by 15 are replaced with "pingpong" Input 15, Output: [1, 2, "ping", 4, "pong", "ping", 7, 8, "ping", "pong", 11, "ping", 13, 14, "ping pong"].
Specifications:
- Program only accepts numbers between 1 and 400
- Program can take the user's number and output a list that counts up to that number.
- Program can take the user's number and output a list that counts up to that number and replaces numbers divisible by 3 with the word "ping".
- Program can take the user's number and output a list that counts up to that number and replaces numbers divisible by 5 with the word "pong".
- Program can take the user's number and output a list that counts up to that number and replaces numbers divisible by 3 and 5 with the words "ping pong".
Setup/Installation Requirements
- Clone repository.
- Double click "index.html" OR
- Visit https://miami78.github.io/pingpong/
Technologies Used
HTML, CSS, and Bootstrap.
License
MIT License
Copyright (c) 2018 Miami Larry