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

Did you find this page helpful?