I have an assignment for college,
anyway i need to make this pattern 
OutPut:

```
*
**
***
****
*****
******
*******
********
*********
**********

```

Here's my code:

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Problem_11
{
    class Program
    {
        static void Main(string[] args)
        {
            int i;
            for (i = 1; i <= 10; i++)
            {
                for (string o = "*";); //Nested for loop
                {
                    Console.Write(o);
                }
                Console.Write("\n");
            }
            Console.ReadLine();
        }

    }
}

```

Error 1 Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

Error 2 Invalid expression term ')'

Error 3 Invalid expression term '{'

Error 4 ) expected 

Error 5 { expected
['https://Stackoverflow.com/questions/22895562', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3415389/']
You don't need an inner loop, use the [string](http://msdn.microsoft.com/en-us/library/xsa4321w%28v=vs.110%29.aspx) overload that let's you repeat a char

```
for (int i = 1; i <= 10; i++)
{
    Console.WriteLine(String.Format("{0}\n", new String('*', i));
} 

```
Your loop will never end once it's compiled as there's no condition, but that's another issue. One problem is the semi-colon was outside the parenthesis in the nested for loop.

```
for (string o = "*";;)

```