Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Pseudocode For Statement
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Malcolm, post: 1676347"] pseudocode is a specification of an algorithm which is designed to be human- rather than machine- readable. How you would specify a for loop depends on your human audience. If they are experienced C programmers, you would probably use the C syntax. On the other hand if they are beginning programmers who are just learning about loops, you would write something like. counter is called i; set i to initial value (usually zero) loop label here: do_something, possibly using i; change i, (usually, add 1 to it) if a condition involving i is true (usually, is i < N) jump to loop label for loop ends here. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Pseudocode For Statement
Top