163k views
2 votes
What is a variable? Why is it helpful in programming?

User Ntsh
by
4.9k points

1 Answer

2 votes

Answer:

Variables can represent numeric values, characters, character strings, or memory addresses. Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data.

Step-by-step explanation:

User Alex Wade
by
5.4k points