ranee

Untitled

Sep 6th, 2022
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. string lineTithText = "You win some. You lose some.";
  2. char symbol = ' ';
  3. string[] substrings = lineTithText.Split(symbol);
  4.  
  5. foreach (var substring in substrings)
  6. {
  7.     Console.WriteLine($"Substring: {substring}");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment