a java programming question
A thief Muthhooswamy planned to escape from Tihar jail. Muthhooswamy is basically a monkey man and he is able to jump across the wall. He practiced to cross a wall and he is able to jump 'X' meters, but because of slippery wall he fall 'Y' meters after each jump. To escape from jail he has to cross 'N' number of walls where height of each wall is given in an array. Write a program to find out the total number of jumps he will make to escape from the jail.
Re: a java programming question
Usually questions contain questions marks. Usually questions about Java programming contain code.
Please see the link in my signature on asking questions the smart way before you post again. What have you tried? Where are you stuck?