RosettaCodeData/Task/Conditional-structures/Ada/conditional-structures-1.adb

11 lines
162 B
Ada
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
type Restricted is range 1..10;
My_Var : Restricted;
if My_Var = 5 then
-- do something
elsif My_Var > 5 then
-- do something
else
-- do something
end if;