Write a program that prints numbers from 1 to 100, one number per line. For each printed number, use the following rules:
1. if the number is divisible by 3 or contains 3, replace 3 by "Foo";
2. if the number is divisible by 5 or contains 5, replace 5 by "Bar";
3. if the number is devisible by 7 or contains 7, replace 7 by "Qix".
Example: 1 2 FooFoo 4 BarBar Foo QixQix 8 Foo Bar
More details:
- 13 contains 3 so we print "Foo"
- 15 is divisible by 3 and 5 and contains 5, so we print “FooBarBar”
- 33 contains 3 two times and is divisible by 3, so we print “FooFooFoo”
We do not host FooBarQix Kata on our servers. We did not scan it for viruses, adware, spyware or other type of malware. This app is hosted by Google and passed their terms and conditions to be listed there. We recommend caution when installing it.
The Google Play link for FooBarQix Kata is provided to you by apps112.com without any warranties, representations or guarantees of any kind, so access it at your own risk.
If you have questions regarding this particular app contact the publisher directly. For questions about the functionalities of apps112.com contact us.
| ||||
Downloads: 3 | ||||
Updated At: 2024-04-19 23:09:15 | ||||
Publisher: Best.App | ||||
Operating System: Android | ||||
License Type: Free |