Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Repeated char
//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) { //Your code goes here Console.WriteLine(Program.getChar()); } private static string getChar() { String str="abac"; Console.WriteLine(str); for(int i=0; i<str.Length;i++) { for(int j=0;j<str.Length;j++) { if(i!=j && str[i]==str[j]) { //Console.WriteLine(str[i]); return str[i].ToString(); } } } return "not found"; }} }
run
|
edit
|
history
|
help
0
2
sdfghyjujyhtgrfedcf
UrlAccess
Write a program to filter distinct items from the array
find node in linked list
XmlException in XmlSerializer.Deserialize when XML has \0
Permute
Fórum ➡ Filling in a DataTable from a list of KVP's ♦
c++ MICHELL MARTINEZ
NationalCode