Question: You have to create a game namely rock, paper, scissors in the c language without using arrays, structures, and pointers. use stdio.h library and loops

You have to create a game namely rock, paper, scissors in the c language without using arrays, structures, and pointers.

use stdio.h library and loops statements. please give an explanation of code.

1) Both of the players have to type their choice, such as R, S, P. R represents rock, S represents Scissors, P represents paper.

2) If the chosen values are not appropriate type (error) and ask to retype the value again, additionally if the values are the same, ask to retype the choice again.

3) At the end, the program has to print the winner, and ask them to play a game again by typing (yes/Y) or any other value that means no and the game ends.

Step by Step Solution

3.51 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a Rock Paper Scissors game in C without using arrays structures or pointers you can follow this guiding structure Heres a stepbystep breakdo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Engineering Questions!