Advertisement
TeMePyT

Untitled

Jun 6th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8. namespace SoloLearn
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             string[] text=Console.ReadLine().Split().ToArray();
  15.             char[][] jaggedArr = new char[text.Length][];
  16.             for(int i=0; i<text.Length; i++)
  17.             {
  18.                 jaggedArr[i]=text[i].ToCharArray();
  19.             }
  20.             for(int i=0; i<jaggedArr.GetLength(0); i++)
  21.             {
  22.                for(int j=0; j<jaggedArr[i].GetLength(0); j++)
  23.                {
  24.                    Console.Write(jaggedArr[i][j]+" ");
  25.                }
  26.                Console.WriteLine();
  27.             }
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement