Small Basic: Making Timer Software

Small Basic: Making Timer Software

Subscribers:
613
Published on ● Video Link: https://www.youtube.com/watch?v=w8ypfvuLXpg



Duration: 0:00
745 views
1


Hi, in this video we will learn how to use SMALL Basic to make making timer sofware.

I hope you like, sorry for the microphone quality.

This is the code:

TextWindow.WriteLine("Enter hour: ")
hour = TextWindow.Read()
TextWindow.WriteLine("Enter minute: ")
min = TextWindow.Read()
TextWindow.WriteLine("Enter second: ")
sec = TextWindow.Read()

For i = 0 To 23
For j = 0 To 59
For k = 0 To 59
TextWindow.WriteLine(i+":"+j+":"+k)
Program.Delay(1000)
If i = hour And j = min And k = sec Then
Goto quit

EndIf

EndFor
EndFor
EndFor
quit:
Sound.PlayChime()
TextWindow.WriteLine("Done")