Conversion Functions Recursive Functions Being Iterative
Bentuk fungsi iteratif :
The equation between iterative and recursive loop:
• Iterative and recursive are methods or techniques in looping (looping).
• Equally experienced looping condition.
Algoritma :
Deklarasi
x,i : integer
Deskripsi
Iteratif
read x
for i <- 1 to x do write i end for end Rekursif read x if (x >= 1) then
rekursif (x – 1)
write x
end if
end
program C++
Advertisements
No trackbacks yet.