How to improve logical thinking and solving problem | Sololearn: Learn to code for FREE!

+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

12/30/2019 7:46:02 PM

Niel Castillo

6 Answers

New Answer

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.

+7

Start with simple problems. Try to solve them on paper first, then translate it into code. You must know how to take input in the language of your choice. How to iterate over arrays and list and other data structure. Know the features and programming constructs offered by the language. And practice, there is no other magic pill available

+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...)

+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.

-1

http://wow-good.com/2020/?n=Halelujah-Awee-Papua&t=fm