📄 while_program.adb.npp
字号:
--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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -