how to make decision of the game ?c#(switches) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to make decision of the game ?c#(switches)

switch (number) { case 1: Console.WriteLine(

quot;computer played paper and you played {selection}"); break; case 2: Console.WriteLine(
quot;computer played rock and you played {selection}"); break; case 3: Console.WriteLine(
quot;computer played scissors and you played {selection}"); break; } //.Pause the program to allow the user to view the output. Console.ReadLine(); /*Using only switch statements, determine the winner of round based on the rules of the game. Use the format shown in the examples below.*/ switch (selection) {

6th Oct 2020, 8:30 AM
ramandeep kaur
4 Answers
+ 2
Your code is truncated. You should instead share a code link rather than raw text to avoid truncation for character limit excess. https://www.sololearn.com/post/75089/?ref=app
6th Oct 2020, 9:58 AM
Ipang
+ 2
Do you see a small button with a + sign next to the comment input box below this thread? use that, pick "Insert Code". When you get to Code Playground choose "My Codes" instead of "Hot Today", then pick a code. Another way is to open the code in SoloLearn editor and tap on share button (in app) or copy URL from address bar (in browser). Choose "Copy to clipboard" and paste in the thread Description above. Seriously you don't see the option? did you read the post I linked previously?
7th Oct 2020, 9:25 PM
Ipang
+ 1
i dont see the option here to share the code link
7th Oct 2020, 6:25 PM
ramandeep kaur
0
i practice my codes on visual studio and i am unable to see your link there is some error called 404
13th Oct 2020, 5:01 PM
ramandeep kaur