![]() In programming, we often come across situations where we have to use a code that we have implemented before instead of writing that code again we could just move it under a name and call that name whenever we need that code to be implemented. Most used iterations are for loop, while loop, do-while loop. Suppose we want a block of code to repeat a number of times or till when a condition is matched, to write the same line again and again would not only make our code bigger and bulky but will also make it unreadable for this situation we are provided with loops, they repeat a specific block of code until some condition is reached. One can find an example of if-else switch cases all around the net, it basic working includes if this choice is true to do this if not then do this ![]() ![]() As a beginner you will hear this word quite often as this is considered as the best practice to reach a goal, it basically is the layout of the code in a simple mix of English language and your preferred programming language which covers all the important points of how the code will work and how it would be implemented.Īs you begin you will be introduced with the conditionals these are basically he conditional statements which tell program what to do in different cases, they play a major role in providing dynamic approach to a program and are present in a huge number in any big code as program should not work in a defined manner but should be interactive to be used by the users.
0 Comments
Leave a Reply. |