0
WriteLine yourName does not have space
Hey guys, So I am following this function here and when I input the code same as displayed over here and type in the name, it just gives an output of "HelloyourName" as in without spaces between Hello and the name I wrote in. How to add a space in the code so it would display "Hello yourName"?
2 ответов
+ 1
In programming you need to do everything yourself even adding spaces.
In addition to Niawahta
Console.WriteLine("Hello " + yourName);
Console.WriteLine("Hello" + " " + yourName);
String Greeting = "Hello";
Console.WriteLine(Greeting + " " + yourName);
0
Add a space after hello:
String hello = "hello "; // java, but you should get the idea