When can you calculate the result directly in the output statement, and when do you need to create a separate variable?
September 26, 2020
A separate variable needs to be set if the result after the output command needs to be used somewhere else. If the result of the expression is no longer needed, then the expression itself can be specified in the output command.
Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.