Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started