+ 1
Having problem running this C# code... Can i know where the problem is
using System; namespace Project { class MyClass { public static void Main(string[] args) { var string1 = robot; Console.WriteLine("Ask for my name, user"); Console.ReadKey(); Console.WriteLine("My name is..." + string1); Console.WriteLine("Press Enter to continue"); Console.ReadKey(); Console.WriteLine("Thanks for trying."); } } }
3 Antworten
+ 3
Line 6. robot should be in the quotation marks, just like: "robot"
(no idea why you need that "robot" there, but alright.. )
Here is a fixed version of your code :
https://code.sololearn.com/ciiPIrHNTyl0/?ref=app
+ 2
Thanks Aleksei Radchenkov
+ 2
omitogun toni,
No problem buddy 👍
And happy learning!