Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

print

Posted on 2006-07-07
3
304 Views
Last Modified: 2010-04-16
how to write for loop in pascal
0
Comment
Question by:perlperl
  • 2
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 50 total points
ID: 17063590
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
 
LVL 13

Expert Comment

by:Webstorm
ID: 17065330
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
 
LVL 100

Expert Comment

by:mlmcc
ID: 17126721
Glad i could help

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convertion SDK Vc++ to Delphi - fingerprint reader 5 812
Unsigned int64 to unsigned int32 10 1,704
Delphi TDBX too many connection problem 2 1,164
Interbase BDE 4 458
Businesses who process credit card payments have to adhere to PCI Compliance standards. Here’s why that’s important.
Are client relationship the only driver of a successful MSP? While important, client relationships are only one component. Learn how else MSPs can broaden their horizon and differentiate themselves.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question