Changes

Jump to: navigation, search

Pascal (programming language)

45 bytes added, 00:13, April 14, 2012
moved [[Pascal programming language]] to [[Pascal (programming language)]]
[[File:Niklaus Wirth.jpg|right|200px|thumb|Prof. Niklaus Wirth.]] '''Pascal''' is a [[computer]] [[programming]] [[language]] created by Prof. Nicholas Niklaus Wirth , and published in 1970. It became widely popular with the release of Borland's [[Turbo Pascal]], an integrated editor and compiler for Pascal on [[MSDOS]], in 1981. Pascal was eventually made an ISO standard (ISO 7185).
== Description ==
The {{tt|for}} statement executes the assignment statement each time through the loop.
If the loop is to execute more than one statement, they are incorporated into a compound statement, bracketed by {{tt|begin}} and {{tt|end}} reserved words:
 
<code>
for i:=1 to 6 do
In Pascal, a '''set''' is a collection of ordinal values of the same type.
Operators can test for the existence of a value in a set , ''and'' or ''or'' two sets together, compare sets, and do other operations.
The following code shows an example of declaring and using a set, in this case of the days of the month that are Sundays.
type
*ISO 7185:1990
[[Category:Information technologyProgramming Languages]][[Category:computer science]][[category:Programming_languageComputers]]