+ 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
8 odpowiedzi
+ 2
For me it runs without error...
+ 1
Can you please show your complete code? What error do you get? Did you initialize "name"?
+ 1
My answer:
class Program
{
static void Main(string[] args)
{
string name;
name = Console.ReadLine();
Console.WriteLine("Hello {0}. Welcome to our event․",name);
}
}
+ 1
Can you describe the error message you get?
+ 1
The same problem. this is a task from 5.1. the first case passes, the others do not
0
The same problem...
My code:
string name = Console.ReadLine();
Console.WriteLine("Hello {0}. Welcome to our event.",name);
0
Did you try to remove the dot after "event"?
0
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
string name;
name = Console.ReadLine();
Console.WriteLine("Hello {0}. Welcome to our event",name);
}
}
}