How to improve logical thinking and solving problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to improve logical thinking and solving problem

When I’m trying to make a code on my own it’s hard for me to think on how to start and how to use the logical thinking in a particular project. Anyone can give tips on how to improve my logical thinking and solving problem skills

30th Dec 2019, 7:46 PM
Niel Castillo
Niel Castillo - avatar
5 Answers
0
For example, you can write this kind of programs? Working with variables: 1. Create a "num" variable and assign it a value. Display the value of this variable. 2. Create variables a=10 and b=2. Display their sum, difference, product, and quotient (the result of division). 3. Create variables c=15 and d=2. Sum them up and assign the result to the "result" variable. Display the value of the "result" variable. 4. Create variables a=10, b=2, and c=5. Display their amount. 5. Create variables a=17 and b=10. Subtract the variable "b" from "a" and assign the result to the variable "c". Then create the variable "d" and assign it the value 6. Add the variables "c" and "d", and write the result to the "result" variable. Display the value of the "result" variable.
30th Dec 2019, 8:50 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 4
Stick around on Sololearn and learn from others.
1st Jan 2020, 4:16 PM
Sonic
Sonic - avatar
+ 3
train in solving logical problems, start by writing code to solve simple problems. if you find it difficult to immediately write code from your head, write a step-by-step solution algorithm on paper, in simple language or pseudocode. then try to write a program using the key words (commands) of the programming language. to do this, study thoroughly all the syntax and features of the language (branching, loops...)
30th Dec 2019, 8:42 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
From what I've seen, there are always tasks, like very simple beginner problems, that you *can* solve. I think it's best to solve these a lot, while gradually adding more and more knowledge. If something is not possible right now, postpone it, choose something mildly challenging instead, which you can do. Over time, your skill to imagine solutions and implement them will grow like a muscle with training, and problems that seemed impossible before, begin to look manageable.
30th Dec 2019, 11:19 PM
HonFu
HonFu - avatar
30th Dec 2019, 9:59 PM
Halelujah Awee Papua
Halelujah Awee Papua - avatar