A program that returns a sequence of numbers from 0 till the user inputted converted by special rules, Created 2/12/2019
A program that uses behavior-driven development to take a number from a user and returns a sequence of numbers from 0 till inputted number, but some of them are replaced with words "ping" and "pong". It uses the following specifications:
- The program doesn't replace a number from the sequence if it is not divided by 3 and by 5;
- Example Input Number: 1
- Example Output: 1
- The program replaces a number from a sequence with "ping" if it is divided by 3;
- Example Input Number: 3
- Example Output: "ping"
- The program replaces a number from a sequence with "pong" if it is divided by 5;
- Example Input Number: 5
- Example Output: "pong"
- The program replaces a number from a sequence with "ping-pong" if it is divided by 3 and by 5;
- Example Input: 15
- Example Output: "ping-pong"
- Please visit the GitHub repository for this project at "https://github.com/sjullieb/csharp-ping-pong"
- Clone repository or download to desktop
- Open PingPong.exe.
No known bugs
If you run into any issues or have questions, ideas or concerns. Please email me at sjullieb@gmail.com
- C#
MIT
Copyright (c) 2019 Yulia Shidlovskaya