ornek1

mail@pastecode.io avatar
unknown
csharp
19 days ago
446 B
2
Indexable
Never
string satir = "";
int harfAdet = 0;
string yeniIfade = "";
char karakter = Convert.ToChar(textBox1.Text);

for (int i = 0; i < richTextBox1.Lines.Count(); i++)
{
    satir = richTextBox1.Lines[i].ToString();
    for (int a = 0; i < richTextBox1.Lines[i].Length; a++)
        if (karakter == satir[a])
            harfAdet++;
    
    yeniIfade = harfAdet + satir + satir.Length;
    listBox1.Items.Add(yeniIfade);
    harfAdet = 0;
Leave a Comment