Geri sayac

mail@pastecode.io avatar
unknown
ruby
2 years ago
288 B
2
Indexable
Never
timer = Time.now
puts "Set Time:"
input_minute = gets.chomp.to_i
second = 5


while true
	puts "Minute: #{input_minute}, Second: #{second}"

	sleep 1
	timer.min + second-=1
	if second == 0

		input_minute -=1
		second = 5

	break
	elsif second & input_minute == 0
		
	end
end
puts "end.."