In this series, we are going to learn the fundamentals of computer programming. Language-specific features will be provided in a different series. A programming language is one of the possible ways to instruct a computer. We try to solve a real-life problem. Every programming language might not be suitable for the current problem at hand. In other words, we can say that programming is the skill of implementing an algorithm in a programming language. An algorithm is a step-by-step solution for a problem. So, we can not solve a moderate-size problem in one step. We need to break down a problem into problems of a manageable size. The person who does programming is known as a programmer. Some programmers deal with computer hardware and they are known as system programmers. Others are known as web programmers and write web applications. So, the different types of developers(programmers) use different programming languages to handle thei...
Infinite Loop : we must have to use break to get out of loop. While Loop : We optionally use break to get out of loop. For Loop : We optionally use break to get out of loop. Happy reading. Keep in touch.
Continuing from Programming Concepts Part I , now we talk about real programming tasks. As we need containers to put items in a kitchen. Then we use these items to prepare food for ourselves. The preparation of food involves some activity. In the same manner, in programming, we need variables to store values and we do some activity to complete a task. We use instructions to complete a task. For example, we need two variables to store values and addition instruction (+) to find the sum of the two variables. In a high-level programming language, we say instructions as operators . a = 5 b = 8 a + b is 13 The first time when we introduce a variable in a program it is called the declaration of the variable. And the first-time value assigned to the variable is called initialization of the variable. Each programming language has its own way of variable declaration and initialization. In this series, we are going to learn the fundamentals of computer programming. Langua...
Comments
Post a Comment