Chess Tournament - Introduction to C# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Chess Tournament - Introduction to C#

My code below is not producing any output. How do I modify the code to correct it? using System; public class Program { static void Main(string[] args) { int wins; int ties; //your code goes here wins = Convert.ToInt32(Console.Readline()); ties = Convert.ToInt32(Console.Readline()); Console.WriteLine(wins + 0.5*ties); } }

20th Jan 2023, 3:48 PM
Lashana Jegatheswaran
2 Answers
+ 5
Console.ReadLine() with capital L
20th Jan 2023, 4:48 PM
JaScript
JaScript - avatar
+ 2
Thank you so much!
20th Jan 2023, 7:02 PM
Lashana Jegatheswaran