Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

ISBN: 1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

What are the major political issues in this case?

Answered: 1 week ago

Question

What will you do or say to Anthony about this issue?

Answered: 1 week ago