how a programmer should think logically to develop logic for a program-logical thinking tip
What is a logic ?
In a program logic is a code or set of instructions to solve a particular problem. Logic is important in each and every program as every program have some logic to solve the problem.
How to think logically ?
Feel you are talented than computer:
-> Whether there any travelling resources like a bike or car is provided to reach the shop. if it is provided then you will go forward otherwise you will ask them to provide transport facility.
-> After that you will think of reaching the exact place. for this you should think which route is used to reach the desired place. after choosing the desired place then you will go there, buy the book and return back.
-> Starting from number 1
-> If the remainder is zero(if it is even) then you will write the number.
-> Then you will go for the next number and check whether the given number is even or not. you will continue the above steps until the number 10.
Step 1 :-
Step 2:-
Step 3:-
Final conclusion:-
In a program logic is a code or set of instructions to solve a particular problem. Logic is important in each and every program as every program have some logic to solve the problem.
Logic is a special set of instructions given to the computer. The computer executes the given instructions specified in the logic and solve the problem by using those instructions.
How to think logically ?Every programmer should think logically in order to develop logic for a program. but the problem arises here is how to think logically ?
So in order to think logically we should learn how a logic will work and how to develop a logic for a program.
Also read:Introduction To Logical Thinking For a Programmer.
How to develop a logic ?To develop logic for a program we should be capable of thinking logically. only a logical thinker can be capable of developing logic for a program. but most of the programmers and beginners struggle a lot in order to improve their logical thinking skills.
Points to be remember while developing a logic :-Feel you are talented than computer:
Comments
Post a Comment