นับจำนวนครั้งที่เลข 1 ปรากฏในอาร์เรย์ ตัวอย่างโค้ดเต็ม using System; public class Demo { public static void Main() { int count = 0; int[] num = new int[] {1, 25, 1, 55, 1}; Console.WriteLine(Numbers:); for (int i = 0; i < 5; i++) { Console.WriteLine(nu