示例#1
0
        public SOAL04()
        {
            Console.WriteLine("Masukkan deret 2 dim:");
            string[] split1 = Console.ReadLine().Split(',');
            int      jmlBrs = split1.Length;
            int      jmlKol = 0;

            foreach (var item in split1)
            {
                string[] split2 = item.Split(' ');
                jmlKol = split2.Length;
                break;
            }
            Array2D = new string[jmlBrs, jmlKol];

            int brs = 0;

            foreach (var item1 in split1)
            {
                int      kol    = 0;
                string[] split2 = item1.Split(' ');
                foreach (var item2 in split2)
                {
                    Array2D[brs, kol] = item2;
                    kol++;
                }
                brs++;
            }

            LogicFunction.PrintArray(Array2D);
        }
示例#2
0
 public LOGIC02(int n)
 {
     Array2D = new string[2, n];
     FillArray7();
     LogicFunction.PrintArray(Array2D);
     //Console.Write("Press any key to continue");
     //Console.ReadKey();
 }
示例#3
0
文件: SOAL06.cs 项目: inasfthnh/Logic
 public SOAL06(string kalimat)
 {
     Array1D = new string[kalimat.Length];
     FillArray(kalimat);
     LogicFunction.PrintArray(Array1D);
     Console.WriteLine("\n");
     CountUpper();
 }