0

Why is there a error

Why does my code give if error I want to eventually have it add to dragons when console.deadline is complete https://sololearn.com/compiler-playground/clHTy4q2jjuK/?ref=app

8th Oct 2025, 9:49 PM
Ikethedev
2 Antworten
+ 1
Not exactly sure what you are trying to do as you initialized dragons as 99 then sent to console to display 99 then attempted to convert the number to string incorrectly and then requested an input from end_user... https://sololearn.com/compiler-playground/cf1knAA5PjNp/?ref=app
9th Oct 2025, 1:17 AM
BroFar
BroFar - avatar
0
Here is the code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int dragons = 99 ; Console.WriteLine (dragons) ; Convert.int.ToString (dragons) ; Console.ReadLine (dragons) ; } } }
8th Oct 2025, 9:50 PM
Ikethedev