HI!!!!!!!!!

How can I find the index of same digit which is at diffrent postion in any given number(number can be of any length)....
Like we have any number, suppose, 982625
How can we find the index of two 2s in this number.........
I have made a form in which there are two textboxes.In first ,i am entering number(which is 982625) and in second one I am entering the digit(i.e. 2)...
Can anyone provide me C# code for finding index values.............

sorry, this is a c++ forum, there is a C# forum located elsewhere on this site

Not completely sure what you mean.

Since it's a text box, just look at every character in the box and remember the index of each 2 you come across.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.