Give a recursive algorithm for computing n * a using only addition, where n is a positive integer and a is a real number. Hint: add a to itself n times.

Printable View

- October 17th 2009, 01:50 PMzap1231Recursive algorithm
Give a recursive algorithm for computing n * a using only addition, where n is a positive integer and a is a real number. Hint: add a to itself n times.

- October 17th 2009, 01:53 PMMatt Westwood