Solved

print

Posted on 2006-07-07
3
300 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
Comment Utility
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
Comment Utility
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
Comment Utility
Glad i could help

mlmcc
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

12 Experts available now in Live!

Get 1:1 Help Now