Solved

print

Posted on 2006-07-07
3
303 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

One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now