Welcome to the Treehouse Community
Looking to learn something new?
Why some line number does not have codes? How will I know if I need to leave some number line without a code?
Below is an example of what I'm talking about, as you can see line number 7 and 11 does not have any codes...so why is that?... is that necessary for coding?
1 class Program
3 static void Main()
5 // Prompt the user for minutes exercised
6 Sytem.Console.Write("Enter how many minutes you exercised: ");
8 // Add minutes exercised to total 9 // Display total minutes exercised 10 // Repeat until the user quits 11
It is absolutely not required to put empty lines in your code, but adding one empty line after small blocks of code (loops, if-else clauses, methods, etc.) just helps with readability.
Thanks emmuster! :)