Something like this:
sum = 0
for i = 2 to 20 step 2
{
sum = sum + i
}
pseudo code algorithm to create a linked list
An algorithm is an abstract set of rules used to solve a specific problem. Pseudocode is just one of many ways to represent an algorithm.
You are going about this backwards. First, define the program. Second, describe its algorithm. Third, if needed, write pseudo code. (Sometime, algorithm and pseudo code is the same process.) Fourth, or third, write real code.
An algorithm is a instruction for solving a problem. It is typically illustrated using prose, pseudo code or flowcharts, but other methods exist. The algorithm is the "here's how it's going to work" part of the solution. An implementation (of an algorithm) is a specific expression of this algorithm, using a specific programming language or any other suitable means. The implementation is the "here's how I've done it" part of the solution.
Ugh. Forget this... It's impossible...
the difference between that two words is the spelling, numbers of letters and the first letter in that two particular words
You can represent an algorithm by three different ways: 1. Pseudo Code 2. Structured flow charts 3. Actual code
Source code is a sequence of executable instructions written in a particular language. Pseudo code is a sequence of non-executable instructions. It is also called algorithm written in plain English
what's the difference between flow chart and structure diagrams and pseudo code
Pseudo-code allows for an intermediate step between a human language description of an algorithm and a programming language description of the algorithm. It is often a good way for non-programmers to understand the programming process.
You can represent an algorithm by three different ways: 1. Pseudo Code 2. Structured flow charts 3. Actual code
Random numbers cannot be generated programatically. For pseudo-random numbers use function 'rand'.