June 2024
Beginner
976 pages
16h 34m
English
Variables are a good way to store values in memory but they have one limitation—they can hold only one value at a time. There are many cases, however, where a program needs to keep a large amount of data in memory, and variables are not the best choice.
For example, consider the following exercise:
Write a Visual Basic program that lets the user enter three numbers and displays them sorted in ascending order.
Consider the following code fragment. It lets the user enter the three numbers.
When the loop finally finishes iterating, the variable number contains only that last number that was provided. Unfortunately, all the previous ...
Read now
Unlock full access