Skip to content

JamesHesterJr/research-square

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Research Square

Simple code exercise for potential employer

Assignment

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).

Solution

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.

Author

Solution written by James Hester. Email any questions or comments to himself@jameshesterjr.com

About

Simple code exercise for potential employer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages