Найдено документов: 21 (1 сайтов) ---- Время поиска: 0.04сек. |
Показаны документы, содержащие фрагменты текста из документа
http://star.arm.ac.uk/f77to90/c9.html.
http://star.arm.ac.uk/f77to90/c9.html.
1. Recursion
A completely new possibility of Fortran 90 is recursion. Note that it requires that you give a new property RESULT for the output variable in the function declaration. ... Here follows two examples, first recursive calculation of the factorial, then recursive calculations of the Fibonacci-numbers. ... The listings of the routines follow, the output variables are called FAC_RESULT and FIBO_RESULT , respectively. ... Not only functions but also subroutines can be recursive. ...
[
Сохраненная копия
]
Ссылки http://star.arm.ac.uk/f77to90/c9.html -- 4.8 Кб -- 17.02.1996
Похожие документы
Похожие документы
Еще в разделе:
(Показать все результаты (>21) - crydee.sai.msu.ru/ )
Астронет | Научная сеть | ГАИШ МГУ | Поиск по МГУ | О проекте | Авторам
Комментарии, вопросы? Пишите: info@astronet.ru или сюда