198k views
25 votes
25 Points!

Which of these lines of code will increment a variable?
A. print(variable)
B. count(variable)
C. inc(variable)
D. variable = variable + 1

User Jason Coon
by
6.0k points

1 Answer

10 votes

Answer:

I believe the answer is D. var = var + 1

Step-by-step explanation:

User Beauti
by
6.8k points