0
Can someone tell me why is the name not showing in the output i tbe code in desc.?
2 Answers
+ 2
Hello Brainy Batein ,
Look at this ...
NoobKing = Console.ReadLine();
Console.WriteLine("Hello {0}, your Name", NoobKing); // add NoobKing
Here value of <NoobKing> variable will be used to replace {0}, you forgot this.
Also, I recommend to pick another name for variable <NoobKing>, since your class name was also NoobKing. C# wouldn't consider it a problem, but for bigger projects, you may accidentally confuse your code readers : o
0
PLS ANSWER