To Test ur c skills there is a test and i challenge u guys read the description | Sololearn: Learn to code for FREE!

0

To Test ur c skills there is a test and i challenge u guys read the description

There was a ship which was travelling it's journey consist of 100 people during night there was a thunder storm and to save there their life all 100 people jumped in the sea and started to swim to the nearest island , when all 100 reached the island they were happy but at the same time the island were occupied by tribal people and started to fear them by saying "our food has arrived" after begging for their life with the chief he agreed with one condition saying "" All should form a circle and the 1st person was given a knife and said kill the next person and pass it to 3rd and 3rd kills 4th and passes to 5th and so on.. "" the question is that WHO SURVIVES AT THE LAST WRITE THE CODE"" THANK U FOR READING THE PROBLEM DO REPLY😎😎

11/4/2018 8:46:35 AM

GANESH PAWAR

3 Answers

New Answer

+3

Welcome to the Q&A area! If this is something you know how to do and are recommending other people do, you should repost this in your Activity Feed and / or submit it as an assignment in the lesson factory. If this is something you need help doing, you should provide a link to the relevant project from your Code Playground so we can help you troubleshoot the specific issues you are running into (and ensure that we are not taking away a practice / learning opportunity from you by overfunctioning). The Code Playground should be relatively easy to find in the website version of SoloLearn, but if you are in the app version, it can be accessed via the curly braces, green circle with plus sign to add a new project, then select the project type. Looking forward.

+1

Thank u for ur review I am trying to find a solution for that

0

Well, you know that in the first round of stabbings, every even numbered person gets killed, then every even person in the new set of 50, then every even person in the new set of 25, then every odd person in the new set of 13 (because the 25th person kills the 1st person), etc. Looking forward to seeing your code. 😁