Ejemplo n.º 1
0
        static void VifitProdEur()
        {
            Massts massts = new Massts();

            double temp;

            for (int i = 0; i < massts.eurmas1.Length - 1; i++)
            {
                for (int j = i + 1; j < massts.eurmas1.Length; j++)
                {
                    if (massts.eurmas1[i] > massts.eurmas1[j])
                    {
                        temp = massts.eurmas1[i];
                        massts.eurmas1[i] = massts.eurmas1[j];
                        massts.eurmas1[j] = temp;
                    }
                }
            }


            Console.Write("       " + massts.date3[0] + "\t     \n");
            Console.Write("    |" + "EUR: " + $"{massts.eurmas1[0]} грн" + "|" + "       \n\n");
        }
Ejemplo n.º 2
0
        static void VigitProdDolar()
        {
            Massts massts = new Massts();

            double temp;

            for (int i = 0; i < massts.dolarmas.Length - 1; i++)
            {
                for (int j = i + 1; j < massts.dolarmas.Length; j++)
                {
                    if (massts.dolarmas[i] > massts.dolarmas[j])
                    {
                        temp = massts.dolarmas[i];
                        massts.dolarmas[i] = massts.dolarmas[j];
                        massts.dolarmas[j] = temp;
                    }
                }
            }


            Console.Write("       " + massts.date3[6] + "\t     \n");
            Console.Write("    |" + "USD: " + $"{massts.dolarmas[0]} грн" + "|" + "       \n\n");
        }