C
C#8mo 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
x0rld8mo ago
what's the line 14 ?
Thinker
Thinker8mo ago
Console.Read() returns an int, not a string. You probably want Console.ReadLine() instead.
_ArAd_
_ArAd_8mo ago
thx, it worked