Variables
Your programs need to store values. For instance, you might have a program that calculates the resistance of an electrical circuit based on the amperage and voltage. The user inputs the amperage and voltage, and the resistance is calculated. The amperage and voltage, though, need to be stored somewhere so that when the calculation is performed, the values that the user entered are available.
Variables not only store values, but they can be altered. You can multiply a value that’s stored in a variable by 5, increment it, negate it, or any number of other operations.
Variables can control the flow of a program’s execution and affect the overall state of a program. They are a fundamental part of programming languages; without them, you’d ...
Get Special Edition Using® Microsoft® ASP.NET 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.