while_program.adb.npp
来自「This contains the following topics and m」· NPP 代码 · 共 18 行
NPP
18 行
--A while statement in Ada 95--Illustrated below is a fragment of code that uses a while statement--to write the text message Hello 6 timeswith text_io; use text_io;procedure while_program is --Count : Integer ; Count : Integer :=3;begin--Count := 1; --Set count to 1while Count <= 6 loop --While count less than or equal 6Put( "Hi Sai welcome to silver software" ); --Print HelloNew_Line;Count := Count + 1; --Add 1 to countend loop;end while_program; --Note: The statement: Count := Count + 1; adds 1 to the contents of Count -- and puts the result back into the memory location Count.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?