I need some help creating a program that requires input with first letter in UPPER case and all other in lower case.
I tried to write some code, but I can't seem to figure it out.
EDIT: I think some of u didnt understand the problem. I have to create a loop that requires from the user to enter the first number in upper and others in lower, if the requirements are not met, the user must input once again, until the first letter is upper and others are lower.
var novaDrzava = new Država ();
Console.Write ("Vnesite ime (prva začetnica naj bo velika, ostale male): ");
novaDrzava.Ime = Console.ReadLine ();
var drzava = novaDrzava.Ime;
var inicialka = drzava.Substring (0);
var ostale = drzava.Substring (1, drzava.Length - 1);
for (int i = 0; i <= malecrke.Length; i++) {
if (inicialka.Contains (velikecrke[i])) {
if (ostale.Contains (malecrke[i])) {
break;
} else {
Console.WriteLine ("Ponovno vnesite ime");
novaDrzava.Ime = Console.ReadLine ();
}
}
}