• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

print

how to write for loop in pascal
0
perlperl
Asked:
perlperl
  • 2
1 Solution
 
mlmccCommented:
For i := 1 to 10 do
   do something;

If you need to have multiple statements
For i := 1 to 10 do
Begin
    Do something;
    Do another thing
end;

mlmcc
0
 
WebstormCommented:
and if you want to decrement, or use another increment step :

For j := 30 to 1 step -1 do
   ...

For j := 0 to 20 step 2 do
   ...
0
 
mlmccCommented:
Glad i could help

mlmcc
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now