Temporizador de 10 minutos
import time
def timer(min):
for x in range(min*60 + 1):
time.sleep(1)
print(x)
Fragile Flamingo
import time
def timer(min):
for x in range(min*60 + 1):
time.sleep(1)
print(x)
-- Language: Lua
local number = 1
while number <= 600 do
if number == 600 then
print("TIMER FINISHED")
print("TIMER FINISHED")
print("TIMER FINISHED")
else
print(number)
number = number + 1
end
wait(1)
end
using System;
using System.Threading;
static void Main(string[] args)
{
Console.WriteLine("Please type \"start\" and press ENTER");
while (true)
{
var userInput = Console.ReadLine();
if (userInput.Equals("start"))
{
break;
}
Console.WriteLine("Not correct, please try again");
}
var minutes = 10;
Console.WriteLine("Going to sleep for " + minutes + " Minutes...");
Thread.Sleep(1000 * minutes * 60);
Console.WriteLine("Done...");
Console.ReadLine();
}