Anyone knows what is the code for Guessing game ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Anyone knows what is the code for Guessing game ?

28th Nov 2018, 11:53 PM
Mohamed
5 Answers
+ 1
public class Program { public static void Main() { while(true){ System.Console.WriteLine("Guess?"); System.Console.WriteLine(System.Console.ReadLine() + " Was incorrect."); } } }
29th Nov 2018, 12:04 AM
John Smith
John Smith - avatar
0
@John Smith oh I see how it is....
29th Nov 2018, 12:12 AM
yinhaodragon7
yinhaodragon7 - avatar
0
@yinhaodragon7 He should have provided a better specification anything more than that is scope creep.
29th Nov 2018, 12:16 AM
John Smith
John Smith - avatar
0
What do you mean?
29th Nov 2018, 12:17 AM
yinhaodragon7
yinhaodragon7 - avatar
0
I mean the game is if you pick 20 than it's correct but if any other number it says it's too high or too low. The numbers between 1 and 30
29th Nov 2018, 12:20 AM
Mohamed