Advertisement
Guest User

Programm

a guest
Dec 25th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.23 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. namespace console
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             Console.OutputEncoding = Encoding.UTF8;
  11.             //заготовка.
  12.             //string[] d_names = new string[100];
  13.             //int k = 0;
  14.             //const int N = 5;
  15.             //string[] allAnimals = new string[N] { "Кошка - 1", "Собака - 2", "Рыбка - 3", "Паук - 4", "Папугай - 5" };
  16.  
  17.             //Console.WriteLine("Выберите ваше животное:");
  18.             //for(int i =0; i < N; i++)
  19.             //{
  20.             //    Console.WriteLine(allAnimals[i]);
  21.             //}
  22.  
  23.             //Console.WriteLine("Введите номер вашего животного");
  24.             //int anim = Convert.ToInt32(Console.ReadLine());
  25.  
  26.             Dog Jek = new Dog("attack", "corgi", "short", 4, true, 23, 60, "sausages");
  27.             Dog Drake = new Dog("defence", "mops", "long", 4, true, 15, 40, "neskwik");
  28.  
  29.             var n_dog1 = Jek * Drake;
  30.  
  31.             Console.WriteLine(Jek);
  32.             Console.WriteLine(Drake);
  33.             Console.WriteLine(n_dog1);
  34.  
  35.             Console.ReadLine();
  36.  
  37.  
  38.  
  39.  
  40.         }
  41.  
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement