Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static char[] masiv;
- class cin
- {
- public static string getline()
- {
- return Console.ReadLine();
- }
- }
- void Naznachenie(int dovzhina)
- {
- masiv = new char[dovzhina];
- }
- static void Main(string[] args)
- {
- Console.WriteLine("Ryadok plz.");
- string ryadok = cin.getline();
- Console.WriteLine("Vvedi dovzhinu brat.");
- int dovzhina;
- try
- {
- dovzhina = int.Parse(Console.ReadLine());
- }
- catch (Exception shtoeto)
- {
- Console.WriteLine(String.Format("So mnoi sluchilos {0}.", shtoeto.Message));
- Console.ReadKey();
- return;
- }
- Console.WriteLine("Ni sliv ni pochatkov ne vizhu tolko bukovki");
- Console.WriteLine("Vivozhu robotiv");
- Console.WriteLine(" * *");
- Console.WriteLine(" _|_ _|_");
- Console.WriteLine("|0_-| |-_0|");
- Console.WriteLine("q-|-p q-|-p");
- Console.WriteLine(" _|_ _|_");
- Console.ReadKey();
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement