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"?

14th Oct 2017, 5:12 PM
Evaldas Oleinikas
Evaldas Oleinikas - avatar
2 odpowiedzi
+ 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);
14th Oct 2017, 6:57 PM
sneeze
sneeze - avatar
0
Add a space after hello: String hello = "hello "; // java, but you should get the idea
14th Oct 2017, 5:41 PM
LunarCoffee
LunarCoffee - avatar