Contact

If you’d like to get in contact with me to discuss something I have written about, please do use the below comment form. ┬áMessages will not be published as comments, and I’ll be sure to get back to you at my earliest convenience.

2 replies on “Contact”

premier – Exercise 2.14

I believe the program is not illegal as you don’t need curly braces when only treating a single expression.
Try it yourself, stuff like if(boolVar = true) doShit(); is perfectly fine ^^.
And as the scope is one line, the “sum” below it would not use the loop’s local “i” variable.
Therefore the answer would be “100 45”, not “10 45”.

Leave a Reply

Your email address will not be published. Required fields are marked *