Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication5
- {
- class Program
- {
- public static string FirstCharToUpper(string input)
- {
- return input.First().ToString().ToUpper() + String.Join("", input.Skip(1));
- }
- static void Main(string[] args)
- {
- string abc = "pawel";
- abc = FirstCharToUpper(abc);
- Console.WriteLine(abc);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement