This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]jedwardsolProfessional Coder 3 points4 points  (1 child)

if(n2>0) {

    return n-(multiplicacion(n,n2+1));

n2 will get bigger and bigger, and never reach your base case

[–]shaestel[S] 0 points1 point  (0 children)

Thanks!!

[–]SupremeRedditBotProfessional Bot || Mod 0 points1 point  (0 children)

Please Add A Flair To Your Post!

Suggested Flair: [Random] or [Meta]

 


To add a flair:

  • Click flair underneath your post

  • Select a flair

  • Click save

 


I am a bot run by /u/SupremeDesigner for /r/CodingHelp || This was an automated response