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