CrewLab

day 03_6

May 20th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 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. namespace Les3
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("Введите предложение: ");
  14.             string[] f_list = Console.ReadLine().Split(new char[] { ' ' });
  15.             Console.WriteLine();
  16.             for (int i = 0; i < f_list.Length; i++)
  17.             {
  18.                 Console.WriteLine(f_list[i]);
  19.             }
  20.             Console.WriteLine();
  21.         }
  22.     }
  23. }
Add Comment
Please, Sign In to add comment