//1. Uzd


using System;
class HelloWorld {
  static void Main() {
    Console.Write("Ievadiet kolonu skaitu: ");
    int Kskaits = Convert.ToInt32(Console.ReadLine());
    Console.Write("Ievadiet rindu skaitu: ");
    int Rskaits = Convert.ToInt32(Console.ReadLine());
    TabulasLīnija(Kskaits, Rskaits);
  }
  static void TabulasLīnija (int K, int R){
      for (int i1 = 1; i1<=R; i1++){
          Console.Write("*");
          for (int i2 = 1; i2<=K; i2++){
              Console.Write("---*");
          }
          Console.WriteLine("");
      }
  }
}


//2. Uzd
using System;
using System.Linq;
class HelloWorld {
  static void Main() {
    int[] tabula = {5,8,2,3};
    TabulasRinda(tabula);
  }
  
  static void TabulasRinda (int [] tabula1){
      Console.Write("| ");
      for (int i1 = 0; i1<4; i1++){
          Console.Write(tabula1[i1] + " | ");
  }
  int max = tabula1.Max();
  int min = tabula1.Min();
  int sum = tabula1.Sum();
  Console.WriteLine(" " + max + "  |  " + min + "  |  " + sum + "  |");
}
}


//3. Uzd
using System;
//using System.Linq;
class HelloWorld {
  static void Main() {
    Console.Write("Ievadiet savu vārdu: ");
    string vards = Console.ReadLine();
    Console.Write("Ievadiet savu uzvārdu: ");
    string uzvards = Console.ReadLine();
    TabulasDati(vards, uzvards);
  }
  
    static void TabulasDati (string vards, string uzvards){
        int vardsL = vards.Length;
        int uzvardsL = uzvards.Length
        string [<]tabula = new string [uzvardsL, vardsL];
        int rand_num;
        Random rd = new Random();
        for (int i1 = 1; i1<uzvardsL; i1++)
            for (int i2 = 1; i2<vardsL; i2++){
                rand_num = rd.Next(1,10);
                tabula[i1, i2] = Convert.ToString(rand_num);
        }
        for (int i1 = 0; i1<uzvardsL; i1++)
            for (int i2 = 0; i2<vardsL; i2++){
                if (tabula[i1, i2] == null) {
                    Console.Write (" * ");
                } 
                else {
                    Console.Write("| "+ tabula[i1, i2] + " ");
                }
        }
        Console.WriteLine ("|");
}
}