Explore the topics covered in the Recursion lesson and enhance your programming skills by completing the included programming exercises.

Practice exercises

1

Calculate power recursively

Create a Java program that implements a recursive function to calculate the result of raising an integer to another integer. This function should be created using recursion.

2

Create a recursive function to multiply

Create a Java program that implements a recursive function called multiply() that takes two integer numbers requested from the user and returns the result of their multiplication.

3

Calculate Fibonacci series numbers

Create a Java program that uses recursion to calculate a number in the Fibonacci series.

4

Calculate the factorial of a number

Create a Java program that implements a recursive function that receives a requested number from the user and returns the factorial of that number.

5

Reverse a string recursively

Create a Java program that requests a string from the user and implements a recursive function to reverse a string of characters.

6

Check palindrome recursively

Create a Java program that implements a recursive function to check if a string is a palindrome or not.

Java Course Lessons

Discover all the lessons included in the Java programming course. Complete all the exercises and learn to program by programming.

Social networks

Help us to share free knowledge and programming in the world.

Keep learning

C# Programming Course

Free programming course with practical exercises and solutions in C#. Start learning right now!

Exercises C# App

Take your Exercises C# lessons everywhere with our Android app. Download it now from Google Play