i want to solve thi assignment ....so if any one can help me with it i 'll really appreciate it.
Your group decided to play a game called rhyme. The game is simple; all of your friends must be in a circle and say the rhyme in clockwise turn. The person who says the last rhyme will be eliminated. Then start all over again at the next turn until one person is left.
For example, 6 friends with 4 words rhyme “eenie, meenie, mainee, mo”:
The first person leave is number 4, followed by 2 then 1, 3 and 6. Number 5 is left.
Your task is to write a program that input two numbers (between 1 and 100), the first being n, the number of friends and the second is the number of words in rhyme. The output should be the number of the last person left.