Documente Academic
Documente Profesional
Documente Cultură
Lucrare de Laborator La Informatica NR 2
Lucrare de Laborator La Informatica NR 2
Chisinau 2019
Scopul Lucrarii:
Program P1;
var x,y,z: boolean;
Begin
x:=false; y:=false;
Writeln(‘x=’,x,’y=’,y);
z:=x and y;
Writeln (‘x and y=’,z);
x:=true; y:=false;
Writeln(‘x=’,x,’y=’,y);
z:=x and y;
Writeln (‘x and y=’,z);
x:=true; y:=true;
Writeln(‘x=’,x,’y=’,y);
z:=x and y;
Writeln (‘x and y=’,z);
x:=false; y:=true;
Writeln(‘x=’,x,’y=’,y);
(‘x and y=’,z);
Writeln (‘x and y=’,z);
Readln;
End.
Schema logica
Start
X,y
Rezultatul
Stop