C
C#14mo ago
_ArAd_

✅ my code dose not work

here's the code, whenever i try to complie it, it give an error main1.cs(14,12): error CS0029: Cannot implicitly convert type 'int' to 'string' i'm kinda new to c#. so i'm little bit dumb. what's wrong with it?
3 Replies
x0rld 👻 🎃
x0rld 👻 🎃14mo ago
what's the line 14 ?
Thinker
Thinker14mo ago
Console.Read() returns an int, not a string. You probably want Console.ReadLine() instead.
_ArAd_
_ArAd_OP14mo ago
thx, it worked
Want results from more Discord servers?
Add your server