i just started c programming 2 weeks ago and i have a project which is due in a weeks time.
there is a question which i am stuck at:
Write a recursive function TotalQuotients that take in 3 float parameters start, end anf factor. TotalQuotients sum up all quotients of start and factor. For each recursion, start is added by factor, up to or including end.
TotalQuotients(3.0, 7.0, 1.5) returns 9.0 ((3.0/1.5)+(3.0+1.5)/1.5+(4.5+1.5)/1.5)
Later change the above to an iterative solution.
Hope someone will be able to hel pme with this.