Posts: 12
Location: Somewhere on a Planet.
|
Woohoo. Managed to get help from somewhere else. This problem has now been solved.
The program should output the number of occurrences in the input string of the letter which occurs at the position specified by the input number.
For example, if the user inputs the string abracadabra followed by the number 7 then the output should be 1. Similarly, if the user inputs the string abracadabra followed by the number 2 then the output should be 2
Last edited by NinjaKitty; 06-27-2007 at 01:06 PM..
Reason: Changing things around.
|