Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 d main diff between the java and .net framework

0 Answers   Wipro,


what is the filters in biztakk server? where it can use?

0 Answers   Wipro,


What is the difference between procedure -oriented language and object oriented language?

22 Answers   IBM, Infosys, TCS,


what are resources in case of Threads

0 Answers   Satyam,


how can i create report in abap to insert data in table pa0002 using insert command

0 Answers  


what is different betweet class and interface in java?

2 Answers   Microsoft, Sun Microsystems,


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

1 Answers   Zensar,


Diffrence between 2.0,3.0,3.5,4.0. versions of .net?

0 Answers  


iam confused among testing ,.net and java. can anybody help me.

0 Answers  


THE CHANNEL IN DATA COMMUNICATION CAN BE?

0 Answers   TCS,


Define Abstract method & class with Example

3 Answers  


Where do we need Operator overloading?

0 Answers   BirlaSoft,


Categories