ranee

Untitled

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