11,573 questions
For example:
int[] numbers = textBox1.Text.Split( new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries ).Select( p => int.Parse( p ) ).ToArray( );
int cEv = numbers.Where( n => ( n % 2 ) == 0 ).Count( );
int cOd = numbers.Where( n => ( n % 2 ) != 0 ).Count( );
int s = numbers.Sum( );
txteven.Text = "is: " + cEv;
txtodd.Text = "is: " + cOd;
txtsum.Text = "is: " + s;
It is possible to detect bad numbers.