Operators Pascal. Pascal programming language

Probably every student knows a programming language called Pascal. What is he like? For a long time this language has become dead, because it is used only in schools to educate students and is considered the base. It refers to a simplified version of the Algol language. But, unlike the latter, Pascal can be used to write real programs and even games. Previously, it was quite popular, but now it is preserved only, in fact, for educational purposes. The first thing that attracts potential programmers to Pascal is the ability to write while preserving the properties of the English language, rather than racking their brains over the use of special schemes that are adopted in languages ​​like C.

"" 1970 . , . . "" "-2". .

Pascal ABC – , . .

" "? :

  • ;
  • .

Pascal ABC "", "" . 2002 .

, . Linux, macOS, Windows.





.NET , , - . . "" "", # "".

pascal operators




, . . "" ? , - . "" , . (;). :

  • . . : ( ), ( ).
  • . : , , , .

.

. , , . , . "" :









  • ( );
  • ( ).

.

(""), , . uses . , . read, write .

. USES PROCEDURE.

pascal abc




, GOTO. "" , , , . . (:). , LABEL .

, :

  • ;
  • , .

, GOTO . , , , . (""), GOTO, .

pascal output operator




, IF-THEN-ELSE, , . . :

  • ( , );
  • ( , , ).

IF-THEN-ELSE . . .

? «--». , , , , then. , , else then.

teams in pascal




, . ("") – , BEGIN-END. .

- , IF , CASE. – case, of, end, else. . , . , , . , . , ELSE CASE.

"" , IF. . , , CASE , END, BEGIN. , 5 . IF-THEN , .

main pascal operators




(""):

? . "" :

  • ;
  • .

? ( ) . . , .

. , .

:

  • REPEAT: .
  • WHILE: .
  • FOR – . .

. – , FOR – .

pascal selection operator




-

-. . read . ? , , . read readln . .

("") – write(ln). LN . , . .

var, close. , .

structured statements




("") . , . "". , , . , . , . !




All Articles