© Radek Vystavěl 2017

Radek Vystavěl, C# Programming for Absolute Beginners, https://doi.org/10.1007/978-1-4842-3318-4_13

13. Accumulating Values

Radek Vystavěl

(1)Ondřjov, 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 that is greater by ten than the number entered by the user (see Figure ...

Get C# Programming for Absolute Beginners 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.