Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
occurance of charecter
//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 input = "csharpstar"; while (input.Length > 0) { Console.Write(input[0] + " : "); int count = 0; for (int j = 0; j < input.Length; j++) { if (input[0] == input[j]) { count++; } } Console.WriteLine(count); input = input.Replace(input[0].ToString(), string.Empty); } Console.ReadLine(); } } }
run
|
edit
|
history
|
help
1
Found many section of times intersect (can edit)
75
Understanding For loop and Return functions
Hello world
1.
simult 3x3
Finonacci Series
asdfrgthyu6543wdsc
Remove xmlns and select signle node
1