string dane;
Console.WriteLine("Podaj imie i nazwisko: ");
dane = Console.ReadLine();
string[] danetab = dane.Split(new Char[] { ' ' });
Console.WriteLine("\nTwoje imie i nazwisko zapisane prawidlowo: ");
foreach (string x in danetab)
{
for (int j = 1; j <= 1; j++)
{
Console.Write(Char.ToUpper(x[0]));
}
for (int i = 1; i < x.Length; i++)
{
Console.Write(Char.ToLower(x[i]));
}
Console.Write(" ");
}
Console.ReadKey();
Brak komentarzy:
Prześlij komentarz