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

How can you incorporate a Datawindow to a Oracle8i stored procedure?

0 Answers   IBM,


Have you used callsymputx? what points need to be kept in mind when using it?

0 Answers   GE,


I was try to insert 120000 records into the orcle table using the stroed proceeder. But it was stop the 9999. What can I do insert all the records.

2 Answers  


Explain the difference between an expert and a novice user. How would your strategy for designing user interfaces for an expert user differ from that for designing user interfaces for a novice user.

0 Answers  


THE CHANNEL IN DATA COMMUNICATION CAN BE?

0 Answers   TCS,






What is the Super Class of Exception in java?

11 Answers   Andesa Services, Benchmark, CitiGroup, CMC, Evergent, KOT Systems, Value Labs, Vijay infoart Solutions,


qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again

0 Answers  


For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

0 Answers  


what are stubs related to foxpro?

0 Answers  


. With the help of above table EMP, perform the following operation is sql. a) Add the new column “DEPTNO” b) Rename the table c) Update table d) Modify the table if column ‘SAL’ whose data type is number (10) and you want to enter varchar2 (15) . For example $USD 20 etc.

2 Answers  


what is the work of 1tier,2tier,&ntier? Plz Explain it!

0 Answers  


What is algorithm in SCD Type2(SAS DI Studio Transformaton)?

2 Answers  


Categories