The article describes the features of the popularity of the Linux operating system. And also the use of loops as programming tools for automating repetitive tasks and reducing the amount of code. An analysis of the main types of loops, as well as their syntax, is made. The decision algorithm and the program code for the calculation of the expression with the use of cycles were studied.