title: c# Method to return a string?
body: <p>This method is supposed to have a loop and return a string. How do I do that? This what I have so far. I'm new to C#.</p>
  
  <pre><code>public string BLoop()
  {
      for (int i = 99; i &gt; 0; i--)
      {
          Console.WriteLine(string.Format("{0} bottles of beer on the wall, {0}   bottles of beer.", i));
          Console.WriteLine(string.Format("Take one down, pass it around, {1} bottles of beer on the wall.", i, i - 1));
          Console.WriteLine();
      }
  }
  </code></pre>
  
  <p>++ I tried all the thing you suggested but I think I should rephrase the method is supposed to return a string that is printed by the main.</p>