CSharp to Pseudo Code

From TRCCompSci - AQA Computer Science
Revision as of 14:15, 18 January 2019 by Admin (talk | contribs) (Created page with "==Assigning a value== '←' is to assign a value to a variable, essentially just like '=' in C#. ==While Loop== The command words used in the exam questions is: WHILE (Cond...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Assigning a value

'←' is to assign a value to a variable, essentially just like '=' in C#.

While Loop

The command words used in the exam questions is:

WHILE (Condition)
     ....................
ENDWHILE

Condition will be something which equates to either true or false. Some examples of the conditions are:

WHILE (root * root) < Number

or:

WHILE (factorfound = false)

So the condition is always contained within the round brackets.

C#

while (factorfound == false)
{
     ............
}