Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Sup am a beginner in progrramming and i came a cross this question. Give me an idea of going about it
[code]A robot that has beenprogrammed by a student can take steps of 1 meter or 2 meters. write a pseudocode to calculate the number of ways that this robot can walk N meters.
Distance Sequenceof steps Number o fways to walk
1 1 1
2 1,1 and 2 2
3 1,1,1 or 1,2 or 2,1 3