C# Course Bacis Concepts. How to do the practice 5.2 Welcome Messange? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C# Course Bacis Concepts. How to do the practice 5.2 Welcome Messange?

I write: name = Console.ReadLine(); but it is wrong. I dont know what to do

7th Sep 2021, 6:09 PM
Javón
Javón - avatar
8 Answers
+ 2
For me it runs without error...
7th Sep 2021, 6:37 PM
Lisa
Lisa - avatar
+ 1
Can you please show your complete code? What error do you get? Did you initialize "name"?
7th Sep 2021, 6:18 PM
Lisa
Lisa - avatar
+ 1
My answer: class Program { static void Main(string[] args) { string name; name = Console.ReadLine(); Console.WriteLine("Hello {0}. Welcome to our event․",name); } }
7th Sep 2021, 6:29 PM
Javón
Javón - avatar
+ 1
Can you describe the error message you get?
7th Sep 2021, 6:43 PM
Lisa
Lisa - avatar
+ 1
The same problem. this is a task from 5.1. the first case passes, the others do not
8th Sep 2021, 10:58 AM
Семья Тарасовых
Семья Тарасовых - avatar
0
The same problem... My code: string name = Console.ReadLine(); Console.WriteLine("Hello {0}. Welcome to our event.",name);
9th Sep 2021, 9:01 AM
Алексей Разумейченко
0
Did you try to remove the dot after "event"?
9th Sep 2021, 9:12 AM
Lisa
Lisa - avatar
0
namespace Sololearn { class Program { static void Main(string[] args) { string name; name = Console.ReadLine(); Console.WriteLine("Hello {0}. Welcome to our event",name); } } }
7th Jul 2022, 3:16 PM
peachani
peachani - avatar