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();
}
}
}