@vitaminchik , Welcome to Microsoft Q&A, first of all, we need to combine theoretical knowledge and practical experience to develop logic in programming.
Please refer to the following points to improve your logical thinking skill.
A. we need to learn some programming definition, such as variable, type and algorithms etc.
B. It is an efficient method for you to solve the programming problem directly. You could start from the simple questions and then try to solve harder questions.
C. Please learn from the experienced programmers.
D. You could take part in some online communities and read some blogs and books about programming.
Hope my advice could be helpful.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.