Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Add char to non-numerical words only
//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) { var value = "hello 75 lövgärdet"; int num = 0; var words = value.Split(' ') .Select(w => (int.TryParse(w, out num) ? w : w+"~")); Console.WriteLine(string.Join(" ", words)); } } }
run
|
edit
|
history
|
help
0
30272 Program Ex5 if_else_odd_even
OddEven
Random number generator With IF's that sometimes cant count
Detaylar
as
Composition
Intuit // C# // listing_4.3 (StreamWriter // @"c:\Temp\output.txt")
Card Shuffling
TestCodec1
test