using System;
using System.Collections.Generic;
using System.Text;
namespace Console1
{
class Program
{
static void Main(string[] args)
{
bool b = false;
while (b == false)
{
Console.Write("请输入6个小写字母:");
string s = Console.ReadLine();
if (s.Length != 6)
{
Console.WriteLine("你输入的字母不是6个");
}
else
{
b = true;
for (int i = 0; i < 6; i++)
{
char c = s[i];
if (c < 'a' || c > 'z')
{
Console.WriteLine("第{0}个字符{1}不是小写字母,请重新输入.", i + 1, c);
b = false;
break;
}
}
}
}
Console.ReadLine();
}
}
}