수치해석 Supporting File Lecture2
수치해석 Supporting File Lecture2
Single-alternative structure
(IF / END)
IF condition
True block;
END Double-alternative structure
(IF / ELSE / END)
IF condition
True block;
ELSE
False block;
END
== : equal to (a == 0)
~= : not equal to (b ~= 1)
< : less than (c < 2)
> : greater than (d > 3)
<= : less than or equal to (e <= 4)
>= : greater than or equal to (f >= 5)
WHILE loop
WHILE (condition)
Block2
END
The count-controlled or
False
FOR construct
True
Exercise 2