RosettaCodeData/Task/Short-circuit-evaluation/MATLAB/short-circuit-evaluation-1.m

12 lines
162 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function x=a(x)
printf('a: %i\n',x);
end;
function x=b(x)
printf('b: %i\n',x);
end;
a(1) && b(1)
a(0) && b(1)
a(1) || b(1)
a(0) || b(1)