Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Homework7
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string text = "word1 word2 word3 word4 word5 word6 word7";
- string[] words = text.Split(' ');
- for (int i = 0; i < words.Length; i++)
- {
- Console.WriteLine(words[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment