Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _3._6
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Расскажите самую смешную историю из вашей жизнь");
- string story = Console.ReadLine();
- string[] storySplit = story.Split(" ");
- for (int i = 0; i < storySplit.Length; i++)
- {
- Console.WriteLine("Элемент номер: " + i + "-" + storySplit[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement