title: how to show the number taken by user that how much time it is entered by user
body: <p>Ok the program seems to be easy while doing with loops but what about if else if and else is it possible to do it with these conditions
  I have tried and here is my effort but am failed totally failed .</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;conio.h&gt;
  int main(){
      using namespace std;
      int a,b,c,d,e,f,g,h,j,k,l;
      int c1=0;
      int c2=0;
      int c3=0;
      int c4=0;
      cout&lt;&lt;"please enter first number\n";
      cin&gt;&gt;a;
      cout&lt;&lt;"please enter second number\n";
      cin&gt;&gt;b;
      cout&lt;&lt;"please enter third number\n";
      cin&gt;&gt;c;
      cout&lt;&lt;"please enter fourth number\n";
      cin&gt;&gt;d;
      cout&lt;&lt;"please enter fifth number\n";
      cin&gt;&gt;e;
      cout&lt;&lt;"please enter sixth number\n";
      cin&gt;&gt;f;
      cout&lt;&lt;"please enter seventh number\n";
      cin&gt;&gt;g;
      cout&lt;&lt;"please enter eighth number\n";
      cin&gt;&gt;h;
      cout&lt;&lt;"please enter ninth number\n";
      cin&gt;&gt;j;
      cout&lt;&lt;"please enter tenth number\n";
      cin&gt;&gt;k;
      cout&lt;&lt;"please enter eleventh number\n";
      cin&gt;&gt;l;
      if(a==1)
      {
          c1=a+1;
  
      }
      else if (a==1 &amp;&amp; b==1)
      {
          c2=a+b;
      }
      else if (a==1 &amp;&amp; b==1 &amp;&amp; c==1)
      {
          c3=a+b+c;
      }
      else if (a==4)
      {
          c4=a+1;
      }
      cout&lt;&lt;"no of 1's="&lt;&lt;c1;
  getch();
  }
  </code></pre>
  
  <p>i am taking values and after taking values i want to show that 1 appears how much time </p>