Simple code exercise for potential employer
Please write a program that prints the numbers from 1 to 100. But for multiples of three print “Research” instead of the number and for the multiples of five print “Square”. For numbers which are multiples of both three and five print “Research Square” (note the space).
This problem was solved in two ways. Initially, an algorithm was written to solve the problem. Further, the code was refactored and extended to demonstrate certain principles the use of OOP. While such a problem may not require such a robust solution, it was deemed a good opportunity to present such understanding.
Solution written by James Hester. Email any questions or comments to himself@jameshesterjr.com