26
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
Console.Write("Enter a character: ");
8
char c = (char)Console.ReadLine()[0];
9
if (Char.IsLower(c))
10
{
11
Console.WriteLine("The character is lowercase.");
12
}
13
else if (Char.IsUpper(c))
14
{
15
Console.WriteLine("The character is uppercase.");
16
}
17
else if (Char.IsDigit(c))
18
{
19
Console.WriteLine("The character is a digit");
20
}
21
else
22
{
23
Console.WriteLine("The character isn't an alphabetic character.");
24
}
25
}
26
}
Cached Result