© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
R. VystavělC# Programming for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7147-6_13

13. Accumulating Values

Radek Vystavěl1  
(1)
Ondřejov, Czech Republic
 

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.

Ten More, Revisited

First, you will return to the task of adding ten to a number, which you studied in Chapter 8. The program’s goal is to present a value ...

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.