Design an application that determines not only the position of the survivor but also the order in which the men are removed from the circle. Instead of assuming that there are 39 rebels, assume that there are n men (where n = 1) and rather than choosing every seventh man, choose every mth man where n and m are supplied interactively.
For example, if n = 9 (9 men) and m = 5 (count every fi fth man), the countdown is: 5, 1, 7, 4, 3, 6, 9, 2, and fi nally 8.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here