0
I can’t get the program to repeat until the condition is true, I’m a beginner, someone can help me? :(
Console.WriteLine("Digite sua hora de entrada");
int hours = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Digite os minutos da entrada");
int minutes = Convert.ToInt32(Console.ReadLine());
if (minutes < 00 && minutes <= 60)
{
Console.WriteLine("Minutos inválidos... Digite um valor de 0 a 60");
minutes = Convert.ToInt32(Console.ReadLine());
} else
{
string hournmin = "Sua hora de entrada foi: " + hours + "h" + minutes + "min";
Console.WriteLine(hournmin);
}
See if the answer helps you, I edited your question to better describe the error, I hope I have correctly understood your question.
– Brewerton Santos