Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- class Capitalization
- {
- static void Main()
- {
- List<string> words = Console.ReadLine()
- .Split(new char[] { ' ' }
- , StringSplitOptions.RemoveEmptyEntries)
- .Select(w => w[0].ToString().ToUpper()
- + w.Substring(1, w.Length - 1))
- .ToList();
- Console.WriteLine(string.Join(" ", words));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement