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