Docsity

Estructura básica de un programa en Pascal, Ejercicios de Teoría de Lenguajes Formales para Autómatas

Toggle sidebar
bg1
for VARCONTROL := Valor Inicial to Valor final do
Begin instrucciones; End;
instrucciones
to
End ;
Begin ;
Do
Valor inicial
Valor final
:=
VARCONTROL
FOR
ESTRUCTURA DE CICLO FOR
ESTRUCTURA DE UN IF
If condición then
Begin
instrucciones
End
Else
Begin
Instrucciones
end
If
Condicion then
Begin
Else
end
instruccion
endinstruccion
Begin
pf2

Vista previa parcial del texto

¡Descarga Estructura básica de un programa en Pascal y más Ejercicios en PDF de Teoría de Lenguajes Formales para Autómatas solo en Docsity!

for VARCONTROL := Valor Inicial to Valor final do

Begin instrucciones; End;

instrucciones

to

End

Begin ;

Do

Valor inicial Valor final

VARCONTROL

FOR

ESTRUCTURA DE CICLO FOR

ESTRUCTURA DE UN IF

If condición then

Begin

instrucciones

End

Else

Begin

Instrucciones

end

If

Condicion then

false

true

Begin

Else

instruccion end

instruccion end Begin

ESTRUCTURA DE LA DECLARACION DE VARIABLES

Var

Nombre de la variable

: tipo de variable ;

var

Nombre de la variable

Tipo de variable

ESTRUCTURA GENERAL DE UN PROGRAMA

Program

Nombre del programa

program

declaración de variables (Var

Nombre de la variable

: tipo de variable ; )

Begin

Cuerpo del programa

End.

Declaracion de variables

Begin

var

End

Cuerpo del programa

Nombre de la variable

Tipo de variable