Pseudocode is similar to programming languages

2 years ago
10.5K

Well, that's an algorithm.In fact, let's try to express it a bit more formally in pseudocode,English-like syntax that resembles a programming language.Let n equal 0.For each person in room, set n = n + 1.How to interpret this pseudocode?Well, line 1 declares, so to speak,a variable called n and initializes its value to zero.This just means that at the beginning of our algorithm,the thing with which we're counting has a value of zero.

Loading comments...