Guia del lenguaje pascal

Páginas: 3 (563 palabras) Publicado: 19 de marzo de 2011
MÁRQUEZ NORBERTO RUBÉN ANALISTA DE SISTEMAS DE COMPUTACIÓN

Estructura de un programa Pascal
1 1.1 1.2 CÓDIGO ENCABEZAMIENTO ............................................... program nombre(input,output,archivo); BLOQUE 1.2.1 DECLARACIONES 1.2.1.1 DEFINICIÓN DE CONSTANTES ..const ‘ =‘ 1.2.1.2 DEFINICIÓN DE TIPOS ............... type ‘ =‘ 1.2.1.3 DEFINICIÓN DE VARIABLES ..... var ‘ :‘ 1.2.1.4DEF. DE PROCEDIMIENTOS ......procedure 1.2.1.5 DEFINICIÓN DE FUNCIONES .....funcion 1.2.2 SENTENCIAS 1.2.2.1 COMIENZO ..................................begin 1.2.2.2 SIMPLES 1.2.2.2.1DEASIGNACIÓN........... := 1.2.2.2.2DE PROCEDIMIENTO ..read / write 1.2.2.3 ESTRUCTURADAS 1.2.2.3.1COMPUESTAS ...............var1:= n;var2:=n; 1.2.2.3.2REPETITIVAS ................while / for / repeat1.2.2.3.3CONDICIONAL ..............if / case 1.2.2.3.4WITH 1.2.2.4 VACÍAS ........................................ ;; 1.2.2.5 FIN .................................................end.

Página 1

MÁRQUEZ NORBERTORUBÉN ANALISTA DE SISTEMAS DE COMPUTACIÓN

E s tr u c tu r a d e u n P r o g r a m a F e n te L in e a s d e C ó d i g o E n c a b e z a m ie n t o p r o g r a m n o m b r e ( in p u t ,o u t p u t,a r c h iv o ) ; B lo q u e D e c la r a c i o n e s D e f in ic ió n d e C o n s t a n t e s const n o m b r e = v a lo r typ e n o m b r e = v a lo r S e n t e n c ia s b e g in s im p le s d e a sig n a c i ó n := d e p r o c e d im in e t o re a d y w rite E s tr u c tu r a d a C í c lic a s w h ile / u n til / fo r C o n d i c i o n a le s if / c a s e end
Página 2

var n o m b r e = v alo r

MÁRQUEZ NORBERTO RUBÉN ANALISTA DE SISTEMAS DE COMPUTACIÓN

Gráficos del diagrama y Su contraparte en Código
ASIGNACIÓN I:=0; ENTRADA Y SALIDA SIMPLE read(N);
N=?

I=0

read(N,O,P);write(N); writeln(N); writeln(N); page; write(N:n:n); SENTENCIAS REPETITIVAS
W

?N

a>1

while a>1 do sentencias;leer o realimentar;

U

repeat sentencias; leer until a>1;

a>1

F...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Lenguaje PASCAL
  • Lenguaje pascal
  • Guía Pascal
  • Guia de pascal
  • guia pascal
  • Lenguaje de Programacion Pascal
  • Lenguaje De Programacion Turbo Pascal
  • Diferencia entre pascal y lenguaje c

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS