Hello there,
I am trying to write the algorithm for a program that will return 1 (true) if a string argument ends in the substring OH.
I'm pretty confused, even though it seems fairly simple.
Would I accomplish this with an if statement?
something like:
Thanks!Code:if string [i] = 'O' && string [i+1] = 'H' return TRUE; else return FALSE;