How to start programming?
How to start programming or coding? This is the first question for beginners and hobbyist who have just started to think about programming. Programming is a big thing. Hey, I\'m just kidding. But to some extent its true if you don\'t know the basic rules of programming and most important it becomes harder if you don\'t understand the flow of programming. Here, I am sharing some of my programming experience with you.
What is programming or coding?
Programming is a mechanism with the help of which we can make the applied object to work as we order it or as we desire. For example, a parrot repeats the phrase if we speak infront of him repeatedly. Here, we are programming the parrot to repeat the phrase by speaking infront of him. A trained dog of police, animals of circus; they all are programmed. Hey, don\'t worry, I am not going to teach you how to programme those. Lets talk about the real programming. So, a real programming uses bunch of codes. Sometimes input is required and sometimes not. If it required input then it must be interfacing othewise it just outputs the set objective. So, what are these codes? These codes are instructions, the orders what we make to the machine. Here you have to understand that these instructions are directly executed by the machine. You know that machine only understand \'0\' and \'1\'. So, those instructions are converted to 0s and 1s.
Why Programming?
Yes. Why programming is required? Before you learn how to program, you have to understand why it is required to programme. you know that, its to produce fast and errorless output. Also, we have to understand the scope of programming. Just look around and think, everything is programmed. A door is programmed to open and close and let objects pass through it. If you try to watch a movie with door, you can\'t. So you have to know purpose of programming. Once you know the purpos of programming, the coming path becomes easier for you.
Lets start now...
The most important thing that you have to know about any type of programming is the flow of programme. Once you write codes, compilers converts it into machine language and then interpreter executes the instruction one by one. According to the flow of program code, the machine executes and performs the task. You have to make a clear view that how your codes are going to be executed when the machine gets it and initiate, the first line of the code, the second and the third and so on. Machine does not execute the codes from any points rather it executes from top to bottom.
Suppose if you want to write a program which accepts two integer numbers from and check which one is greater and output the double of greater number.