Question: Java Program. Kevin is going up the stairs. The stairs have n steps, Kevin can take one, two or three steps at a time, To

Java Program.

Kevin is going up the stairs. The stairs have n steps,

Kevin can take one, two or three steps at a time,

To achieve a program to calculate the number of ways to complete the stairs.

input

Number of stairs n (n > = 3)

output

How many ways does Kevin have to walk up the stair

Example:

Input:

8

Output:

81

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!