Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Fórum ➡ What values have the greatest frequency? ♦
Array value changer?
BST
code
ElaineBrown**
1. Basics: primitive data types
contraseña
Abstract class by Derived class reference example
ch.murali krishna
Interface With Ambiguity Problem
Please log in to post a comment.