Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Viktor's example
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine("Начало работы. Пример!"); string c = "123 456 789 слово1 блабла трындец абрикос кукуруза Витя привет много слов сколько хочешь", nline; string[] words = c.Split(' '); for(int i=words.Length - 1; i>1; i--) { nline = c.Substring(0, c.LastIndexOf(' ' + words[i])); Console.WriteLine(nline); } Console.WriteLine("Конец работы!"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
tablecsv
sortowania przez wstawienie
FromBase64String
Create Sealed Class Object
Swiss Infotech Tutorial
Encrption & Decryption C#
Delegaty
SceneGraph Interviewee Task
Multi-Dimensional Array
Insertion Sort
stackse - search stackoverflow differently
Please log in to post a comment.