Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            byte[]        NumereDastea = new byte[] { 27, 29, 31 };
            InturiSiDuble NR           = new InturiSiDuble(NumereDastea);

            Afisare(ref NR);

            #region Niste cod
            string[] Row = new string[5];
            {
                Row[0] = "  # ### ### # # ### ### ### ### ### ### ";
                Row[1] = "  #   #   # # # #   #     # # # # # # # ";
                Row[2] = "  # ### ### ### ### ###   # ### ### # # ";
                Row[3] = "  # #     #   #   # # #   # # #   # # # ";
                Row[4] = "  # ### ###   # ### ###   # ###   # ### ";
            }

            //Afisare(Row);
            //Console.WriteLine("Unghiul este:{0} ", unghiCeas(8, 5));
            //Curs25.Command2.RunExample.Run();
            //exampleThreads.Run();
            //DanProblem.Execute();
            //Console.WriteLine(ScrambleProblem.Scramble("Ana", "cr"));
            //Console.ReadLine();
            //Console.WriteLine("answer");
            //var s = ExampleSum(7, 5);
            //var s3 = ExampleSum(14, 11, 9);
            //Console.WriteLine(string.Join(" ", Dinglemouse.humanYearsCatYearsDogYears(1)));
            try
            {
                Impartire(8, 4);
                Impartire(9, 3);
                Impartire(12, 5);
                Impartire(7, 0);
            }
            catch (Exception)
            {
                Console.WriteLine("nu poti imparti la 0 ....ule");
            }
            Console.WriteLine(string.Join(" ", Wave("Andrei")));
            Console.ReadLine();
            #endregion
        }
Exemplo n.º 2
0
 public static void Afisare(ref InturiSiDuble nr)
 {
     Console.WriteLine("Suma elementelor din array-ul de bite e: " + nr.suma);
     Console.WriteLine("Media elementelor din array-ul de bite e " + nr.average);
 }