title: How to loop a Console.ReadLine to the infinite?
body: <p>Hello i'm trying to create a calculator game but it loops only 2 times and (idk why)not til the user finds the result with input. And i'll later see how to make a random generator of numbers instead of writing them by myself in the code. Ty for helping.</p>
  <p>Yassine</p>
  <pre><code>using System;
  
  namespace G
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              Calcul(2, 2);
          }
          static void Calcul(int nombre1, int nombre2)
          {
  
              int result = nombre1 + nombre2;
              
              Console.WriteLine(&quot;Combien font &quot; + nombre1 + &quot; + &quot; + nombre2);
  
              int supposed = int.Parse(Console.ReadLine());
  
              if(result != supposed)
              {
                  Console.WriteLine(&quot;Try again!&quot;);
                  supposed = int.Parse(Console.ReadLine());
                
              }
              else 
              {
                  Console.Clear();
                  Console.WriteLine(&quot;Correct!&quot;);
              }
  
  
  
          }
      }
  }
  </code></pre>