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


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.

Nov 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here