using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{//2.输入一个由若干字符组成的字符串,输出其中的大写字母、小写字母、数字和其他字符的个数。
class Program
{
static void Main(string[] args)
{
Console.Write("请输入一串数字: ");
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
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{//2.输入一个由若干字符组成的字符串,输出其中的大写字母、小写字母、数字和其他字符的个数。 class Program {