Using system; using system. collections. generic; using system. LINQ; using system. text; namespace consoleapplication1 {// 2. enter a string consisting of several characters and the number of uppercase letters, lowercase letters, numbers, and other characters. Class program {static void main (string [] ARGs) {console. write ("enter a number"); string S = console. readline (); char [] chnum = S. tochararray (); int COUNT = 0, Count = 0, other = 0, figure = 0; For (INT I = 0; I <S. length; I ++) {If (char) s [I]> 'A' & (char) s [I] <'Z') {count ++ ;} if (char) s [I]> 'A' & (char) s [I] <'Z') {count ++;} If (INT) s [I]> '0' & (INT) s [I] <'9') {figure ++;} else {Other ++ ;}} console. writeline ("the number of letters in the string you entered is"); console. write (count); console. writeline ("the number of letters in the string you entered is"); console. write (count); console. writeline ("the number of numbers in the string you entered is"); console. write (figure); console. writeline ("the number of other characters in the string you entered is"); console. write (other );}}}