Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
4.3 Static typing: benefits, drawbacks and ways to minimise them
12
Testing 10
DSXSAXS
C# Abstract class and method
Fibonacci and finding nth fibo number
SierpinskiTriangleChaosGameRecursion
Math 9.6
30272 Program Ex5 if_else2_odd_even
Wait
Please log in to post a comment.