Advertisement
IGRODELOFF

Task26

Apr 14th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Task26
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int minValue = 0;
  10.             string userInput;
  11.  
  12.             Console.WriteLine("Введите предложение: ");
  13.             userInput = Console.ReadLine();
  14.  
  15.             string[] words = userInput.Split(" ");
  16.  
  17.             for (int i = minValue; i < words.Length; i++)
  18.             {
  19.                 Console.WriteLine(words[i]);
  20.             }
  21.         }
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement