⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forloop_whileloop.adb

📁 This contains the following topics and more ADA versus C and Cplus plus Ada_training ADA 2005 for
💻 ADB
字号:
with Ada.Text_IO; use Ada.Text_IO;
procedure forloop_whileloop is
   Count    : Integer; --count as Integer object
   Count_To : constant Integer := 10; --integer constant
begin
   Count := 1;
   while Count <= Count_To loop --While loop
      Put (Integer'Image (Count));
      Count := Count + 1;
   end loop;
   New_Line;
   for Count in reverse  1 .. Count_To loop --count declared here
      Put (Integer'Image (Count));
   end loop;
   New_Line;
end forloop_whileloop;

⌨️ 快捷键说明

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