using System;
public class Program
{
public static void Main()
var valueToFill = 165;
var data = new int[100];
data.AsSpan().Fill(valueToFill);
// print array content
for (int i = 0; i < data.Length; i++)
Console.WriteLine(data[i]);
}