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
Lab7
DateTime
D112
sum of two array elements
Complex Variable Implementation in C#
ggggg
Login Silencioso
operator overriding
Regras Recad grupo
CodeAdvent