Up to now, you have worked with variables where you stored a value that you later used. After the initial assignment, the value of the variable did not change. Now you are ready to go to the next step, which is to study a case when a variable’s value changes during the program run, in other words, when a new value is determined from the old one.
13. Accumulating Values
Get C# Programming for Absolute Beginners: Learn to Think Like a Programmer and Start Writing Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.