© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
80 replies
McMahone

❔ Recursive Multiplier

Hi, when I try to write this example by modifying the method return type to int, I don't get the same output as the void return type. Shouldn't this give the same result?
Also, why can't I use Console.WriteLine(RepeatMultiply(1,2,4000)); to output the result in the void method example when calling the method from Main?

Sorry if there is something obvious that I don't get. I'm very new to programming.
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Recursive type definition
C#CC# / help
3y ago
Fibonacci in recursive ?
C#CC# / help
4y ago
Debugging recursive algorithms
C#CC# / help
4y ago
Iterative from Recursive [Answered]
C#CC# / help
4y ago