
Count out program
The children’s game of ‘countout’ is played as follows: n children (numbered 1 to
n) are arranged in a circle. A sentence consisting of m words2 is used to eliminate
one child at a time until one child is left. Starting at child 1, the children are
counted from 1 to m and the mth child is eliminated. Starting with the child after
the one just eliminated, the children are again counted from 1 to m and the mth
child eliminated. This is repeated until one child is left. Counting is done circularly
and eliminated children are not counted. Write a program to read values for n
(assumed <= 100) and m (> 0) and print the number of the last remaining child.
Any ideas anyone?

Re: Count out program