
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SegundoExercicio
{
class Program
{
static void Main(string[] args)
{
int h, m, s, t;
Console.WriteLine("Digite a Quantidade de Tempo em Segundos: ");
t = Convert.ToInt32(Console.ReadLine());
h = t / 3600;
m = (t%3600) / 60;
s = (t % 3600) % 60;
Console.Write("Temos: " + h + " Horas ");
Console.Write( m + " Minutos");
Console.Write(" e " + s + " Segundos");
Console.ReadKey();
}
}
}
0 Comentários