static void Main(string[] args)
{

int a = 0;
int b = 1;
Console.WriteLine("enter the hieght");
int j = int.Parse(Console.ReadLine());
...