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/']
try this code

```
for (int i = 0; i < 10; i++)
        {
            for (int j = 0; j <=i; j++)
            {
                Console.Write("*");
            }
            Console.WriteLine();
        }

```
You can *simplify* your solution:

```
...
static void Main(string[] args) {
  // More natural to declare loop variable (int i) in the loop
  for (int i = 1; i <= 10; ++i) 
    Console.WriteLine(new String('*', i)); // <- No inner loop required

  Console.ReadLine();
}
...

```