A picture is worth… 1.500 words

Simple recursion explanation

Here´s an example with some code…

float _pow_recursion(float x, float y)
{
if (y == 0)
return (1);
if (y < 0)
return (_pow_recursion(x, y + 1) / x);

return (_pow_recursion(x, y - 1) * x);
}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using External Editor With VirtualBox

Spice Up Your Slack With Custom Emoji 🌶🤯

Real-Time Alerting with Go, Kafka and Telegram

July Porto Tech & Creative Events

3 Keys to Successful Team Projects

Create a Quora Clone using MERN stack

Terraform — Provider Versioning

Business Law

business law

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Chloé Dumit

Chloé Dumit

More from Medium

NDHS Discriminates Against LGBTQ Employees Despite Pope’s Message of Acceptance

Thrills and Spills

We are Shibonacci

‘Assault On Titan’, ‘Jujutsu Kaisen’ Win Massive As Crunchyroll Proclaims 2022 Anime Awards…