Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Eliminate duplicates char in string either upper or lower case
//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) { string name = "Awah"; string newName = ""; foreach(char value1 in name.ToLower()) { if(newName.IndexOf(value1) == -1) { newName = newName + value1; } } Console.Write(newName); } } }
run
|
edit
|
history
|
help
0
3D Array
true or false
Game v1.0.1
text
up casting down casting
sktieritjre
jjj2
GetDataFromSQLGroups
hihi
Better Random number blocks