Advertisement
vovanhik_24

#26

Aug 30th, 2023 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.             char splitSymbol = ' ';
  2.             string inputMessage;
  3.             string[] wordsArray;
  4.  
  5.             Console.Write("Введите предложение: ");
  6.             inputMessage = Console.ReadLine();
  7.  
  8.             Console.WriteLine(" ");
  9.             wordsArray = inputMessage.Split(splitSymbol);
  10.  
  11.             for (int i = 0; i < wordsArray.Length; i++)
  12.             {
  13.                 Console.WriteLine(wordsArray[i]);
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement