about | help | code help+videos | done | prefs |
Find the index of the first occurrence of the 'target' character in 'str'. If the target character does not appear in the string, return -99 as an indication that the target character was not found. This problem is intended as practice with while loops, so please do not use any for loops. strFindLtr("This is a test", "a") → 8 strFindLtr("This is a test", "z") → -99 strFindLtr("ALL CAPS", "a") → -99 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy