SHARE
TWEET

Functional Programming - 3. Count Uppercase Words

gabi11 May 25th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6.  
  7.  
  8. namespace CSharpAdvanced
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             Console.ReadLine()
  15.                 .Split(' ', StringSplitOptions.RemoveEmptyEntries)
  16.                 .Where(w => char.IsUpper(w[0]))
  17.                 .ToList()
  18.                 .ForEach(Console.WriteLine);
  19.         }
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top