Here is my code. I'm stuck with this recurring error and am at a loss for what to do next. Any guidance on what direction to look in would be great as I am learning how to code. The error message is listed below.
Error CS0119: Expression denotes a 'type', where a 'variable', 'value' or 'method group' was expected
using System;
using System.Collections.Generic;
using System.Data.Odbc;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace Kata
{
public static class PascalsTriangle
{
new public static void Main()
{
int no_row, c = 1, blk, i, j;
Console.Write("\n\n");
Console.Write("Display the Pascal's triangle:\n");
Console.Write("--------------------------------");
Console.Write("\n\n");
Console.Write("Input number of rows: ");
no_row = Convert.ToInt32(Console.ReadLine());
for (i = 0; i < no_row; i++)
{
for (blk = 1; blk <= no_row - i; blk++) ;
Console.Write(" ");
for (j = 0; j <= i; j++)
{
if (j == 0 || i == 0)
c = 1;
else
c = c * (i - j + 1) / j;
Console.Write("{0} ", c);
}
Console.Write("\n");
}
}
}
}
for (blk = 1; blk <= no_row - i; blk++);that;at the end will make sure that the next line is not part of theforstatement, you'll need to remove that semicolon for theConsole.Write(" ");to be apart of theforstatement.using static System.Console;?