1. Course
  2. Recursion
  3. Calculate a power recursively

Calculate a power recursively


Last updated: 8/23/2020 Difficulty: Intermediate

Create a C# program that implements a recursive function that calculates the result of raising an integer to another integer. This function must be created recursively.

Input

2
3

Output

8

Solution

Recursion

1 / 6

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising