Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Function Tester
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine(UppcaseText(Console.ReadLine())); } public static string UppcaseText(string before) { //before = before.ToLower(); String after = ""; var parseName = before.Split(' '); if (parseName.Count() > 1) { foreach (var nme in parseName) { if (nme.Length > 1) { after = after + nme.Substring(0, 1).ToUpper() + nme.Substring(1) + " "; } else { after = after + nme.Substring(0, 1).ToUpper() + " "; } } } else { if (before.Length > 1) { after = before.Substring(0, 1).ToUpper() + before.Substring(1); } else { after = before.Substring(0, 1).ToUpper(); } } return after.TrimEnd(); } } }
run
|
edit
|
history
|
help
0
linq subquery z grupowaniem po dwóch polach
Class Objects
Linq & lambdas
PrecisionTester
using int.TryParse
fuck this
average and percentage
Customer bill information
Reverse String in for loop
Hello World