80 likes | 196 Views
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.
E N D
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
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
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
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
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
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
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
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