0% found this document useful (0 votes)
30 views1 page

Programa de Un Reloj Digital

The document contains code for a digital clock program that uses nested for loops to iterate through hours, minutes, and seconds and displays the time, sleeping for one second between each update.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views1 page

Programa de Un Reloj Digital

The document contains code for a digital clock program that uses nested for loops to iterate through hours, minutes, and seconds and displays the time, sleeping for one second between each update.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PROGRAMA DE UN RELOJ DIGITAL

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace palabraloca
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("BIENVENIDOS AL RELOJ DIGITAL");
for (int h = 00; h <= 23; h++)
{

for (int m = 00; m <= 59; m++)


{
for (int s = 0; s <= 59; s++)
{
Thread.Sleep(1000);
Console.SetCursorPosition(0,0);
Console.WriteLine( h + " : " + m + " : " + s);
}

}
Console.ReadKey();
}
}
}

You might also like