use_of_exit.adb

来自「This contains the following topics and m」· ADB 代码 · 共 17 行

ADB
17
字号
with Ada.Text_IO; use Ada.Text_IO;
procedure use_of_exit is
   Count : Integer; --count as Integer object
   --Count_To : constant Integer := 10; --integer constant
   Count_To : Integer := 10; --integer constant
begin
   Count := 1;
   loop
      Put (Integer'Image (Count));
      exit when Count = Count_To; --Exit loop when ...
      Count := Count + 1;

   end loop;
   New_Line;
   Put ("hai");
end use_of_exit;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?