Nick Walter Challenges (Part 2)
So 5 days without coding is a poor effort! I have a very small amount of time (20 minutes) to do some then I will make up for it by doing more at the weekend. As it's a short time, I'm going straight back to Nick Walter's challenges, rather than Angela's more in-depth and theoretical stuff. Right here we go! Start time - 15:55 Print and comments // 1) Write a single line comment // 2) Write a multi line comment // 3) Print a String, Int and Double all in one print statement These should all be fine. Let's do it! // Here is my single line comment /* Multi line comment: This will go over several lines No problem at all */ var name = "Josh" var myAge = 33 var shoeSize = 8.5 print ( "My name is \ ( name ), my age is \ ( myAge ) and my shoe size is \ ( shoeSize )" ) All easy peasy! Boolean and If Statements //1) Make a boolean variable that's true //2)...