Hello!
How can I make this code (converting seconds to hours, minutes and seconds) that the program will have a subroutine function?
Subroutine needs to return a full-time.
The code is:
class Program
{
static void Main(string[] args)
{
Console.Write("Enter the number of seconds: ");
int seconds = int.Parse(Console.ReadLine());
TimeSpan fullTime = TimeSpan.FromSeconds(seconds);
Console.Write("Full-time is: {0}", fullTime);
Console.ReadKey();
}
}
}