This Application takes in a user input as a number and returns all numbers up to that number with the numbers divisible by 3 as Ping, the numbers divisible by 5 as Pong, and the numbers divisible by both as Ping Pong.
- C#
- Markdown
This Application takes in a user input as a number and runs it through a method called PingPongify. PingPongify first declares an empty output list, then uses a for loop that starts it's index at 1, runs until it reaches the user input number, and increments by 1, then the method checks if the index is divisible by 3 and adds Ping to the output list, the numbers divisible by 5 as Pong to the output list, the numbers divisible by both as Ping Pong to the output list, and if it is not divisible by either it adds the index as a string to the output list.
- You can find the github repository here
- Click the code button, and copy the https link
- In your in git bash or your preferred git terminal navigate to the directory you would like to store the project
- Enter: "git clone" followed by the https link
- Now that the repository is cloned to your computer, right click on the folder and click open with vs code
- Now Type dotnet build to compile your project files
- Now you can run the project by typing dotnet run
- Does not account for user entering a non number
License - MIT
If you run into any problems or find a bug, would like to reach me for a separate reason, feel free to send me an email @jacobleeeugenewilson@gmail.com with details of your issue.
Copyright (c) 12/06/2021 Jacob Wilson, Zach Wilson, Aaron Minnick