using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace hhhhhhh
{
class Program
{
static void Main(string[] args)
{
String[] Num = new String[10] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
Console.WriteLine("请输入一个数字:");
String s = Console.ReadLine();
bool b = false;
for (int i = 0; i <= 9; i++)
{
if (s == Num[i])
{
b = true;
}
}
if (b)
Console.WriteLine("您输入了一个数字:{0}", s);
else
Console.WriteLine("您输入的不是数字!");
}
}
}