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;
- using System.Globalization;
- namespace szavakat_uppercasere
- {
- class Program
- {
- static string mondat;
- static CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
- static TextInfo textInfo = cultureInfo.TextInfo;
- static void Main(string[] args)
- {
- bekérés();
- végrehajtás();
- kiírás();
- }
- static void bekérés()
- {
- Console.WriteLine("Adjon meg egy több szóból álló mondatot.");
- mondat = Console.ReadLine();
- }
- static void végrehajtás()
- {
- mondat = textInfo.ToTitleCase(mondat);
- }
- static void kiírás()
- {
- Console.WriteLine("\n\n*Varázslat történt* \n\nÍme:");
- Console.WriteLine(mondat);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement