I'm beginner and don't know what i must do, pls help me to make coding or the algorithm from this output. i used dev c++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Input the number of stones: 10
Input the stones have taken by player 1: 4
Many stone remaining: 6
Input the stones have taken by player 2: 6
The amount of rock must be between 1 and 4!
Input the stones have taken by player 2: 3
Many stone remaining: 3
Input the stones have taken by player 1: 4
Many stones were left less than a stone taken :(
Enter the number of stones from the player 1: 3
Many stone remaining: 0
Player 1 wins!
pls help me and thanks before
nb: I edit my post for my new question because I can't make new one