One boy has to climb steps. He can climb 1 or 2 steps at a time.

Write a function that will returns number of way a boy can
climb the steps.

Int WaytoSteps(int n)



(eg:- suppose number of steps is n=4 ,the function will
return 5

(one-one-one-one ,one-one-two, one-two-one-,two-one-one,
two-two)


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

what is dot net framework

0 Answers   NIC,


Is CTS company do serious backgroung check?

0 Answers   CTS,


My Qualification is MCA.My interview is on 5th may.They may ask q as------AS u r MCA...Why u r not tring anywhere else? What can be the ans?

0 Answers   State Bank Of India SBI,


Why we need new operator in java at the time of object declaration and why not in c++?

1 Answers   Zensar,


How to call a C++ function which is compiled with C++ compiler in C code?

0 Answers   Yahoo,


Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?

2 Answers  


what is different between kenerl mode and user mode?

1 Answers  


smal talk is pure object oriented or not?

0 Answers  


what is the difference between an application and service??? i mean service which runs as in services.msc.

2 Answers  


Busy waiting is a method whereas a taskwaits for a given event by continiously checking for an event to occur. What is the main problem with this approach

0 Answers  


Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)

0 Answers  


explain how to make a control visible and invisible during runtime

3 Answers  


Categories