Exemple #1
0
 public soal10(int n)
 {
     jmlBaris = (n * n + n) / 2;
     jmlKolom = n * 2 - 1;
     Array2D  = new string[jmlBaris, jmlKolom];
     IsiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #2
0
 public soal02(int n)
 {
     JmlBaris = n;
     JmlKolom = JmlBaris * 2 - 1;
     Array2D  = new string[JmlBaris, JmlKolom];
     IsiArray();
     FunctionBase.CetakArray(Array2D);
 }
 public Soal01(int n)
 {
     JmlhBaris = ((n * 2) - 1) + (n * 2);
     JmlhKolom = JmlhBaris;
     Array2D   = new string[JmlhBaris, JmlhKolom];
     IsiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #4
0
 public Latihankoding02(int n)
 {
     JumlahBaris = n;
     JumlahKolom = n;
     Array2D     = new string[JumlahBaris, JumlahKolom];
     IsiArray();
     FunctionBase.CetakArray(Array2D);
 }
Exemple #5
0
 public posttest(int n)
 {
     jumlahbaris = n;
     jumlahkolom = n * n - n + 1;
     Array2D     = new string[jumlahbaris, jumlahkolom];
     IsiArray2D(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #6
0
 public Soal01(int n)
 {
     JumlahBaris = n * n;
     JumlahKolom = (n * 2 - 1) * 2;
     Array2D     = new string[JumlahBaris, JumlahKolom];
     IsiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #7
0
 public soal08(int n)
 {
     jmlBaris = n * n;
     jmlKolom = n * n;
     Array2D  = new String[jmlBaris, jmlKolom];
     IsiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #8
0
 public PR3(int n)
 {
     JmlhBaris = n * 2 + 1;
     JmlhKolom = (n * 2) + (n * 2 - 1);
     Array2D   = new string[JmlhBaris, JmlhKolom];
     IsiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #9
0
 public Soal10(int n1, int n2)
 {
     JumlahBaris = n1;
     JumlahKolom = (n1 * n2) - (n2 - 1);
     Array2D     = new string[JumlahBaris, JumlahKolom];
     isiArray(n2);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #10
0
 public Soal06(int n)
 {
     JmlBaris = n;
     JmlKolom = (n * n) + (n - 1);
     Array2D  = new string[JmlBaris, JmlKolom];
     isiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #11
0
 public SoalPR1(int n)
 {
     JmlBaris = 3 * n + (n - 1);
     JmlKolom = JmlBaris;
     Array2D  = new string[JmlBaris, JmlKolom];
     isiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #12
0
 public PR01(int n)
 {
     JmlhBaris = (n * n + n) / 2;
     JmlhKolom = (n * n);
     Array2D   = new string[JmlhBaris, JmlhKolom];
     isiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #13
0
 public Soal08(int n)
 {
     JmlhBaris = n;                                //mendefinisikan JmlhBaris
     JmlhKolom = n;                                //mendefinisikan JmlhKolom
     Array2D   = new string[JmlhBaris, JmlhKolom]; //mendefinisikan array (didalam if), sebagai pengganti console write
     IsiArray();
     FunctionBase.CetakArray(Array2D);
 }
Exemple #14
0
       public soal01 (int n)
	{
        JmlBaris = rere;
        JmlKolom = rere;
        Array2D = new String[JmlBaris, JmlKolom];
        IsiArray2D();
        FunctionBase.CetakArray(Array2D)
	}
 public Soal10(int n1, int n2)
 {
     JmlhBaris = n1;
     JmlhKolom = (n2 * n1) - (n2 - 1);
     Array2D   = new string[JmlhBaris, JmlhKolom];
     isiArray(n2);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #16
0
 public PR2(int n)
 {
     jumlahbaris = n + 2;
     jumlahkolom = (n * n + 5 * n) / 2;
     Array2D     = new string[jumlahbaris, jumlahkolom];
     IsiArray2D(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #17
0
 public Soal03(int n)
 {
     JumlahBaris = n * 2 + 1;
     JumlahKolom = ((n * 2) - 1) + n * 2;
     Array2D     = new string[JumlahBaris, JumlahKolom];
     IsiArray(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #18
0
 public PostTest(int n)
 {
     JumlahBaris = n * n;
     JumlahKolom = JumlahBaris;
     Array2d     = new string[JumlahBaris, JumlahKolom];
     isiArray(n);
     FunctionBase.CetakArray();
 }
Exemple #19
0
 public Soal09(int n, int b)
 {
     JumlahBaris = n;
     JumlahKolom = (n * b) - (b - 1);
     Array2d     = new string[JumlahBaris, JumlahKolom];
     isiArray(b);
     FunctionBase.CetakArray(Array2d);
 }
Exemple #20
0
 public PR3(int n)
 {
     jumlahbaris = 2 * n + 1;
     jumlahkolom = 4 * n - 1;
     Array2D     = new string[jumlahbaris, jumlahkolom];
     IsiArray2D(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #21
0
 public soal7(int n)
 {
     jumlahbaris = n * n;
     jumlahkolom = n * n;
     Array2D     = new string[jumlahbaris, jumlahkolom];
     IsiArray2D(n);
     FunctionBase.CetakArray(Array2D);
 }
Exemple #22
0
 public SoalPR03(int n)
 {
     JmlBaris = n * 2 + 1;
     JmlKolom = n * 2 + (n * 2 - 1);
     Array2D  = new string[JmlBaris, JmlKolom];
     isiArray(n);
     FunctionBase.CetakArray(Array2D);
 }