Answer:
B
Step-by-step explanation:
You should question C. That looks like a very poor practice, but sometimes it can't be helped. Try and make short lines
D also looks questionable. You'll wind up with pages and pages of code. A better practice is to create subroutines (functions and procedures in the language I use) and then learn how to pass parameters.
A is not a good idea either because if you look at the code a month later, chances are you won't know the difference between v1 and v2.
The best answer is B. But how many programmers do it?