public static void Main()
string sth, stm, sts, stgg;
int h, m, s, gg, sh, sm, st;
Console.WriteLine("Inserire le ORE");
sth = Console.ReadLine();
h = Convert.ToInt32(sth);
Console.WriteLine("Inserire i MINUTI");
stm = Console.ReadLine();
m = Convert.ToInt32(stm);
Console.WriteLine("Inserire i SECONDI");
sts = Console.ReadLine();
s = Convert.ToInt32(sts);
if (h > 24 || h < 0 || m > 60 || m < 0 || s > 60 || s < 0 )
Console.WriteLine("!!ERRORE!! Orario NON valido");
Console.WriteLine("Orario VALIDO");
Console.WriteLine("I secondi dopo la mezzanotte sono: " + st);
Console.WriteLine("Inserire il numero corrispondente al GIORNO");
stgg = Console.ReadLine();
gg = Convert.ToInt32(stgg);
Console.WriteLine("!!ERRORE!! Giorno NON valido");
else if (st >= 29400 && st <= 47400 && gg < 6)
Console.WriteLine("Sei a scuola");
Console.WriteLine("NON sei a scuola");