- Engineering
- Computer Science
- i am stuck on number 5 in the document below...
Question: i am stuck on number 5 in the document below...
Question details
I am stuck on number 5 in the document below. I tried using indexOf and lastIndexOf but its only giving me a 1 I honestly don't know what I am doing wrong.
Here is my code so far, I put zeros at the other variables as I wanted to see what the code outputted.
O
http://cobweb.cs.uga.edu/~cs1301/files/Lab03.pdf
Solution by an expert tutor
