Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Rextester.Program.Main is the entry point for your code. Don't change it.
- //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.RegularExpressions;
- namespace Rextester
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- string a, b, c;
- Console.Write("Char 1: ");
- a = Console.ReadLine();
- Console.Write("Char 2: ");
- b = Console.ReadLine();
- Console.Write("Char 3: ");
- c = Console.ReadLine();
- if (char.IsUpper(a[0]) || char.IsUpper(b[0]) || char.IsUpper(c[0]))
- {
- Console.WriteLine("At least one char is upper case");
- }
- else
- {
- Console.WriteLine("All chars aren't upper case");
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment