title: input the letter f or any letter and cout an alphabet pattern like a abc abcd abcde abcdef but it only works if i press 0
body: <p>So far nothing happens when you enter f it only works when 0 is entered but I want it so when you press f you get this a ab abc abcd abcde abcdef </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
  int f = 0;
  int z;
  cout &lt;&lt; "";
  while(cin &gt;&gt; f)
  {
      if(f == 0)
      {
          cout &lt;&lt; "ABCDEF\nABCDE\nABCD\nABC\nAB\nA";
          break;
       }
     }
  }
  </code></pre>