Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IfTest(object):
- def Main():
- Console.Write("Enter a character: ")
- c = Console.Read()
- if Char.IsLetter(c):
- if Char.IsLower(c):
- Console.WriteLine("The character is lowercase.")
- else:
- Console.WriteLine("The character is uppercase.")
- else:
- Console.WriteLine("The character is not an alphabetic character.")
- Main = staticmethod(Main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement