Rock, Paper and Scissor in C.
-
Computer chooses rock, paper, scissors randomly
-
You pick one out of those three : "r" for rock, "p" for paper, "s" for scissors.
-
You will get the result what you chose and what was choosen by computer and who won.
-
if else loop used
-
srand function used for randomly choosing rock paper scissor