Advertisement
elena1234

LowerOrUpperCase

Sep 25th, 2020 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2. namespace DataExecise
  3.  
  4. {
  5.  class MainClass
  6.  
  7.     {
  8.         public static void Main(string[] args)
  9.         {
  10.             char firstChar = char.Parse(Console.ReadLine());
  11.  
  12.             if(Char.IsLower(firstChar))
  13.             {
  14.                 Console.WriteLine("lower-case");
  15.  
  16.             }
  17.  
  18.             else if(Char.IsUpper(firstChar))
  19.            {
  20.  
  21.                 Console.WriteLine("upper-case");
  22.  
  23.             }
  24.  
  25.         }
  26.  
  27.     }
  28.  
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement