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 from this blog

Installing ns3 in Ubuntu 22.04 | Complete Instructions

How to Create Ubuntu 24.04 Bootable USB Using Rufus [Step-by-Step Guide]

Installation of NS2 in Ubuntu 22.04 | NS2 Tutorial 2