Dynamic Blinkie Text Generator at TextSpace.net Keep SMILE . GOD BLESS YOU ALWAYS

Senin, 10 Desember 2012

KOMPUTER






 Ini dapat di buat di Microsoft Small Basic

Untuk membuat begini caranya adalah:


TextWindow.Write("What is your name? ")
name = TextWindow.Read()
TextWindow.WriteLine("Hello, " + name + ".")

Ada juga seperti ini: 
 

Cara nya begini :
 
TextWindow.Title = "Area and Perimeter"
TextWindow.Write("How long is the rectangle? ")
length = TextWindow.ReadNumber()
TextWindow.Write("How wide is the rectangle? ")
width = TextWindow.ReadNumber()
area = length * width
perimeter = 2 * length + 2 * width
TextWindow.WriteLine("The area of the rectangle is " + area + ".")
TextWindow.WriteLine("The perimeter of the rectangle is " + perimeter + ".")

Kalau ini caranya begini : 
TextWindow.Title = "Array Object"
TextWindow.Write("What is the name of the first student? ")
students[1] = TextWindow.Read()
TextWindow.Write("What is the name of the second student? ")
students[2] = TextWindow.Read()
TextWindow.Write("What is the name of the third student? ")
students[3] = TextWindow.Read()
Textwindow.WriteLine("Is ‘Robin' here? " + Array.ContainsValue(students, "Robin"))

Semua ini dapat dibuat di Small Basic

Tidak ada komentar: