Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace asd
  7. {
  8.     class wtf
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             string s;
  13.             db = 0;
  14.             string[,] tomb;
  15.             int i = 0;
  16.  
  17.             do
  18.             {
  19.                 Console.WriteLine(db + 1 + ". asd:wtf:lol");
  20.                 s = Console.ReadLine();
  21.  
  22.                 while (s.IndexOf(':') != -1)
  23.                 {
  24.                     tomb[db,i] = s.Substring(0, s.IndexOf(':'));
  25.                     s = s.Substring(s.IndexOf(':') + 1);
  26.                     i++;
  27.                 }
  28.                     db++;
  29.                 Console.WriteLine();
  30.             } while (s != "vége");
  31.             tomb = new string[db, 3];
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement