Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Trim Strings
//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) { for(int i=0;i<5;i++){ string line=Console.ReadLine(); string output=""; if(line.Length<=55) output=line; else if(line.Length>55) { output=line.Substring(0,40).Trim()+"... <Read More>"; } Console.WriteLine(output); } } } }
run
|
edit
|
history
|
help
0
Remove xmlns and select signle node
clientdata.cs
array print 2nd half first and 1 half later
Generic Coveriant
convert a string of numbers to a list then use a forEach to loop through the list
Punnet Square Generator
Messages
opQ 3
test
sgshdfhdfhfdh