JASS Help

Рекурсия

Рекурсия - это вызов функции из самой себя.

function A takes integer B returns integer if B < 0 then return B endif return A(B - 1) endfunction function main takes nothing returns nothing call A(10) endfunction
Last modified: 24 September 2024