Ada Programming/Keywords/reverse
< Ada Programming < KeywordsComputing » Computer Science » Computer Programming » Ada Programming

This keyword is used in for loops to specify that the loop is performed in reverse order:
for I in reverse 1 .. 10 loop Ada.Integer_Text_IO.Put (I); Ada.Text_IO.New_Line; end loop;
Outputs:
10 9 8 7 6 5 4 3 2 1
See also
Wikibook
Ada Reference Manual
Ada Quality and Style Guide
Ada Keywords | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.