Advertisement
Guest User

Untitled

a guest
Dec 29th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 KB | None | 0 0
  1. class Program
  2.     {
  3.         static char[] masiv;
  4.         class cin
  5.         {
  6.             public static string getline()
  7.             {
  8.                 return Console.ReadLine();
  9.             }
  10.         }
  11.         void Naznachenie(int dovzhina)
  12.         {
  13.             masiv = new char[dovzhina];
  14.         }
  15.         static void Main(string[] args)
  16.         {
  17.             Console.WriteLine("Ryadok plz.");
  18.             string ryadok = cin.getline();
  19.             Console.WriteLine("Vvedi dovzhinu brat.");
  20.             int dovzhina;
  21.             try
  22.             {
  23.                 dovzhina = int.Parse(Console.ReadLine());
  24.             }
  25.             catch (Exception shtoeto)
  26.             {
  27.                 Console.WriteLine(String.Format("So mnoi sluchilos {0}.", shtoeto.Message));
  28.                 Console.ReadKey();
  29.                 return;
  30.             }
  31.             Console.WriteLine("Ni sliv ni pochatkov ne vizhu tolko bukovki");
  32.             Console.WriteLine("Vivozhu robotiv");
  33.             Console.WriteLine("  *     *");
  34.             Console.WriteLine(" _|_   _|_");
  35.             Console.WriteLine("|0_-| |-_0|");
  36.             Console.WriteLine("q-|-p q-|-p");
  37.             Console.WriteLine(" _|_   _|_");
  38.             Console.ReadKey();
  39.             return;
  40.         }
  41.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement