Skip to content
Snippets Groups Projects
Commit d8b8ffd9 authored by viniciusmioto's avatar viniciusmioto
Browse files

inicia chamada de procedimentos

parent 4811c7c0
No related branches found
No related tags found
No related merge requests found
program proc1 (input, output);
var x, y: integer;
procedure p;
var z:integer;
begin
z:=x;
x:=x-1;
if (z>1)
then p
else y:=1;
y:=y*z
end
begin
read(x);
p
write (x,y)
end.
// INPP
// AMEM 2
// DSVS R00
// R01: ENPR 1
// AMEM 1
// DSVS R02
// R02: NADA
// CRVL 0, 0
// ARMZ 1, 0
// CRVL 0, 0
// CRCT 1
// SUBT
// ARMZ 0, 0
// CRVL 1, 0
// CRCT 1
// CMMA
// DSVF R04
// CHPR R01, 1
// DSVS R03
// R04: NADA
// CRCT 1
// ARMZ 0, 1
// R03: NADA
// CRVL 0, 1
// CRVL 1, 0
// MULT
// ARMZ 0, 1
// DMEM 1
// RTPR 1, 0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment