Any Programming Language required an Algorithm.
Algorithm - It is the finite set of instructions in which each and every instruction has the meaning, instructions are not ambiguous and all the instructions has to be executed within the finite amount of time. Algorithms can be represented in two formats. 1.Graphical Format called Flow Chart. 2. English like Statements called Pseudocode. Once you Know Flow Chart it is possible to Play with any Language