Question: C Programming: There are 10 people in a circle. The first person kills the 2nd person and gives the sword to the person (3rd person)
C Programming:
There are 10 people in a circle. The first person kills the 2nd person and gives the sword to the person (3rd person) after, who then kills the person after him (4th). Write a function that determines which person (by their number) is alive by the end.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
