TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Seshadri M
NA
69
17.7k
Maximum number of occurence digits from given string
Oct 6 2017 1:36 PM
/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();
Reply
Answers (
1
)
Tab Control Pages
C# How to Convert .dwg file and view in picture box