2015-08-18

Programming is an art, like painting, swimming etc., If you want to learn programming, you have to think programming is like a language to communicate with machine. First you read what all the alphabets in the language. Then start making statements. Till this it seems easy. But how to program.

Programming involves three stages. First solving the problem .

Second writing pseudo code . Third write the program in the language you want may be in C, C++, JAVA

Start solving small small problems like finding even number, printing 100 numbers, etc.,

For example how to find a number is even or not. How to code this.

1st stage:

Correlate the problem , how your brain solves.

Think how your brain solves this problem. If any person gives a even number

.Your brain tells easily,.How it will do? It will divide the number by 2 and

if the remainder is zero, it tells u even number else odd number. Now you know how your brain solves the problem . Second stage is write the pseudo code.

2nd stage:

1. Get the number . (From the person in real world )

2. Perform the modulo division. rem = number %2 (in your brain)

3. If remainder is zero it is even number (say the result).

4. else say the number is not even.

3rd Stage:

num = getnumber()

rem = num%2

if(rem==0) print(even)

else print(odd)

The first and second stages are important . For the third stage you just study the language what all the statements its having and all.

You have to do like this for many small problems to big problems . Then you can surely becomes good programmer.

If you have any doubts , feel free to comment

Show more