hi,
iam using below code for my below task
private void RsButton7_Click_1(object sender, EventArgs e) { int countLines = 0; int countNumbers = 0; var stack = new Stack<char>(); int num; foreach (string line in txtDraft.Lines) { if (line.Trim() == "") continue; // ignore blank lines string[] items = line.Split('.'); foreach (string item in items) { if (int.TryParse(item, out num)) countNumbers++; } countLines++; rsLabel1.Text = countLines + " = lines" + " - " + countNumbers + " = no".ToString(); } }
task-1 work well using above code.
but i want also like task-2 like above given task-2 input.
please anybody share the update code.
Thanks in Advance.
Varta