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

- Oct 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.

- Oct 17th 2009, 01:53 PMMatt Westwood