title: How to solve this task? Find substring in string. C language
body: <p>I must write a program that will retrieve from the user the string consisting only letters &quot;A&quot; and &quot;B&quot;. That string length is 10 characters (each character must be read separately). The program should detect and signal when it finds the sequence &quot;ABBA&quot; is in that string.</p>
  <p>How to do it without arrays? I think the only way to do it, is make 10 scanf, and many of IF statements.</p>