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++

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: