Add 21-50 question of 01/22

This commit is contained in:
Lorenzo 2022-11-02 09:13:43 +01:00
parent 604c2269b6
commit 5c561b5538
121 changed files with 697 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<pre>
class Monitor
InputReal x, y;
OutputBoolean wy;
Boolean wz;
initial equation
wy = false;
equation
wz = (time > 60) or (delay(x, 10) > 0) or (y <= 0);
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
</pre>