Wednesday, 4 February 2015

Printing users input

 

 First line is printing Hello World, and then the second is printing to ask for the users name, and then the third line allows the user to input their name labelling the input as name, and lastly the fourth line is printing hello, and then adding the name to the hello, for example:

Creating New Lines





The \n allows the user to create a new line to put their text on instead of having everything on one long line. The output I got was: