Solved

print

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

23 Experts available now in Live!

Get 1:1 Help Now