IGCSE/GCSE/O & A Level/IB/University Student Forum
Qualification => GCE O - Level => Queries => Topic started by: rickyponting66 on May 19, 2011, 08:48:27 pm
-
how to do a pseudocode c0de question? Whats the method... I dont know much abt it...
Can any one help in an easy way? Or provide comprehensîve n0tex that explain its construction.
-
theres no perticular meathod in phesudocode, u can describe your own soultion to the problem in any way you like,
but the sequence of steps shuld be right & logical for it to be a phesodocode !
-
theres no perticular meathod in phesudocode, u can describe your own soultion to the problem in any way you like,
but the sequence of steps shuld be right & logical for it to be a phesodocode !
But i want a knowledge about its format and commands like loop, if command, etc...
-
k generally the loops are while , for & reapeat untill (may vary from language to language)
while loop- It repeats a given sequence of instructions untill a condition/conditions are false
Repeat untill - repeats a given sequence untill the condition is true.
For next-Keeps reapeating untill it reaches the specified count, i.e as specified by programmer
-
if statement is usually like this.
If Condition true/false Then
Do these>....
else If Another condition True /fale Then
Do these>....
it could keep on continuing untill u put (end IF)
Things would get a bit more complicated if u try to use If conditions inside another if condition
I.e nested IF
Same whith loops too
Loops inside loops are called nested loops