Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication5
  8. {
  9. class Program
  10. {
  11. public static string FirstCharToUpper(string input)
  12. {
  13. return input.First().ToString().ToUpper() + String.Join("", input.Skip(1));
  14. }
  15. static void Main(string[] args)
  16. {
  17. string abc = "pawel";
  18. abc = FirstCharToUpper(abc);
  19. Console.WriteLine(abc);
  20. Console.ReadKey();
  21.  
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement