forloop_whileloop.adb.npp
来自「This contains the following topics and m」· NPP 代码 · 共 19 行
NPP
19 行
with Ada.Text_Io;use Ada.Text_Io;procedure forloop_whileloop isCount : Integer; --count as Integer objectCount_To : constant Integer := 10; --integer constantbeginCount := 1;while Count <= Count_To loop --While loopPut( Integer'Image( Count ) );Count := Count + 1;end loop;New_Line;for Count in reverse 1 .. Count_To loop --count declared herePut( Integer'Image( Count ) );end loop;New_Line;end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?