1 / 8

program p (input, output);

diaEnum. d. nd. program p (input, output);. type TDia = (lun,mar,mie,jue,vie,sab,dom);. var d : tdia; nd : integer;. function diaEnum (n: integer):TDia;. var dia : TDia;. (*f0*)begin. (*f1*) dia := lun;. (*f2*) while n>1 do begin.

jessie
Download Presentation

program p (input, output);

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. diaEnum d nd program p (input, output); type TDia = (lun,mar,mie,jue,vie,sab,dom); var d : tdia; nd : integer; function diaEnum (n: integer):TDia; var dia : TDia; (*f0*)begin (*f1*) dia := lun; (*f2*) while n>1 do begin (*f3*) dia := succ (dia); (*f4*) n := n-1; (*f5*) end; (*f6*) diaEnum := dia (*f7*)end; (*0*)BEGIN (*1*) nd := 2; (*2*) d := diaEnum(nd+1) (* 3*) ... 1

  2. diaEnum d nd 0 program p (input, output) ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom); diaEnum(3) 2 3 1 var d : tdia; nd : integer; ZONA diaEnum ... 2 function diaEnum (n: integer):TDia; n dia var dia : TDia; 3 ? (*f0*)begin f0 3 (*f1*) dia := lun; (*f2*) while n>1 do begin (*f3*) dia := succ (dia); (*f4*) n := n-1; (*f5*) end; (*f6*) diaEnum := dia (*f7*)end; (*0*)BEGIN (*1*) nd := 2; (*2*) d := diaEnum(nd+1) (* 3*) ... 2

  3. diaEnum d nd 0 program p (input, output); ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom) diaEnum(3) 2 1 var d : tdia; nd : integer; ZONA diaEnum ... 2 function diaEnum (n: integer):TDia; n dia var dia : TDia; 3 ? (*f0*)begin f0 (*f1*) dia := lun; f1 lun (*f2*) while n>1 do begin f2 (*f3*) dia := succ (dia); f3 mar (*f4*) n := n-1; 2 f4 (*f5*) end; (*f6*) diaEnum := dia f5-2 (*f7*)end; (*0*)BEGIN (*1*) nd := 2; (*2*) d := diaEnum(nd+1) (* 3*) ... 3

  4. diaEnum d nd 0 program p (input, output); ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom); diaEnum(3) 2 1 var d : tdia; nd : integer; ZONA diaEnum ... 2 function diaEnum (n: integer):TDia; n dia var dia : TDia; 3 ? (*f0*)begin f0 (*f1*) dia := lun; f1 lun (*f2*) while n>1 do begin f2 (*f3*) dia := succ (dia); f3 mar (*f4*) n := n-1; 2 f4 (*f5*) end; (*f6*) diaEnum := dia f5-2 (*f7*)end; mie f3 (*0*)BEGIN 1 f4 (*1*) nd := 2; f5-2 (*2*) d := diaEnum(nd+1) (* 3*) ... 4

  5. diaEnum d nd 0 program p (input, output); ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom); diaEnum(3) mie 2 1 var d : tdia; nd : integer; ZONA diaEnum ... 2 function diaEnum (n: integer):TDia; n dia var dia : TDia; 3 ? (*f0*)begin f0 (*f1*) dia := lun; f1 lun (*f2*) while n>1 do begin f2 (*f3*) dia := succ (dia); f3 mar (*f4*) n := n-1; 2 f4 (*f5*) end; (*f6*) diaEnum := dia f5-2 (*f7*)end; mie mie f3 (*0*)BEGIN 1 f4 (*1*) nd := 2; f5-2 (*2*) d := diaEnum(nd+1) f6 (* 3*) f7 ... 5

  6. diaEnum d nd 0 program p (input, output); ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom); mie 2 1 var d : tdia; nd : integer; ... 2 function diaEnum (n: integer):TDia; var dia : TDia; (*f0*)begin f0 (*f1*) dia := lun; f1 (*f2*) while n>1 do begin f2 (*f3*) dia := succ (dia); f3 (*f4*) n := n-1; f4 (*f5*) end; (*f6*) diaEnum := dia f5-2 (*f7*)end; f3 (*0*)BEGIN f4 (*1*) nd := 2; f5-2 (*2*) d := diaEnum(nd+1) f6 (* 3*) f7 ... 6

  7. diaEnum d nd 0 program p (input, output); ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom); mie 2 1 var d : tdia; nd : integer; ... 2 function diaEnum (n: integer):TDia; var dia : TDia; (*f0*)begin f0 (*f1*) dia := lun; f1 (*f2*) while n>1 do begin f2 (*f3*) dia := succ (dia); f3 (*f4*) n := n-1; f4 (*f5*) end; (*f6*) diaEnum := dia f5-2 (*f7*)end; f3 (*0*)BEGIN f4 (*1*) nd := 2; f5-2 (*2*) d := diaEnum(nd+1) f6 (* 3*) f7 ... mie 7

  8. diaEnum d nd 0 program p (input, output); ? ? type TDia = (lun,mar,mie,jue,vie,sab,dom); 2 1 var d : tdia; nd : integer; ... 2 function diaEnum (n: integer):TDia; var dia : TDia; (*f0*)begin f0 (*f1*) dia := lun; f1 (*f2*) while n>1 do begin f2 (*f3*) dia := succ (dia); f3 (*f4*) n := n-1; f4 (*f5*) end; (*f6*) diaEnum := dia f5-2 (*f7*)end; f3 (*0*)BEGIN f4 (*1*) nd := 2; f5-2 (*2*) d := diaEnum(nd+1) f6 (* 3*) f7 ... mie 3 8

More Related