rearrange if/else lecture points
move value, address, and scanf lecture to before if/else lecture