Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Classes, properties, methods, ling begining
tamrin
Masking Credit Card Number
https://www.compliantmechanisms.byu.edu/profile/new-free-robux-generator-2022/profile
Bases5
Order of Ops 6.0 (Added Easy and Medium)
Pruebas
Lotto35Generator
asxsd
Regex fórum 01
Please log in to post a comment.