program JAVA dengan memanfaatkan pengulangan


Module Module1

Sub Main()
Dim x, y As Integer
For x = 1 To 6 Step +1
For y = 1 To x
Console.Write("*")
Next
Console.WriteLine("")
Next
For x = 5 To 1 Step -1

For y = 1 To x
Console.Write("*")
Next
Console.WriteLine("")
Next

Console.ReadKey()
End Sub

End Module



2 Responses So Far:

Anonim mengatakan...

apakah itu program java??? npa g ada public class nya??

frahz mengatakan...

vb.net console application itu mbak.ty for share