Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Maximum number of occurence digits from given string
Seshadri M
Oct 6 2017 1:36 PM
185
Reply
/Maximum number of occurence digits from given string
// 123mlklk123123lkl11lmlkm44111
// 111
//44
I have tryed using this but i stucked.
string s = Console.ReadLine();
char[] c = s.ToCharArray();
for( int i =0; (c[i]=='0' ||c[i]=='0' ||c[i]=='1' ||c[i]=='2' ||c[i]=='3' ||c[i]=='4' ||c[i]=='5' ||c[i]=='6' ||c[i]=='7' ||c[i]=='8' ||c[i]=='9') &&(c[i]<=s.Length); i++)
{
Console.Write(c[i]);
char cn = c[i];
for (int j =0; c[j] < s.Length; j ++)
{
// Console.WriteLine(s[j]);
}
}
Console.ReadLine();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Tab Control Pages
C# How to Convert .dwg file and view in picture box