ADA - Control Structures

if-then-else

if y<0>
x:=4;
elseif a=0 then
x:=6;
else
d:=9;
end if

for .... do

for i in 0..10 loop
x(i) := i * j;
end loop;

while

while x <>
x:=x+i;
end loop;

case

case x is
when 1 => y:=x;
when 2 => y:=0;
when others => y:=-1;
end case

Comments

Popular Posts