“10 min” Réponses codées

Minuterie de 10 minutes

import time

def timer(min):
  for x in range(min*60 + 1):
    time.sleep(1)
    print(x)
Fragile Flamingo

10 min

-- 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
Old-fashioned Otter

Minuterie de 10 minutes


    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();
            }

Wandering Willet

Réponses similaires à “10 min”

Questions similaires à “10 min”

Plus de réponses similaires à “10 min” dans TypeScript

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code