VERSION 5.00 Begin VB.Form Quadrat Caption = "Quadratzahlen" ClientHeight = 4950 ClientLeft = 60 ClientTop = 345 ClientWidth = 4845 LinkTopic = "Form1" ScaleHeight = 4950 ScaleWidth = 4845 StartUpPosition = 3 'Windows Default Begin VB.ListBox lfListe Height = 2790 Left = 840 TabIndex = 0 Top = 840 Width = 2895 End Begin VB.Label Label1 Caption = "Quadratzahlen" Height = 375 Left = 840 TabIndex = 1 Top = 480 Width = 1815 End End Attribute VB_Name = "Quadrat" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Dim mZahl As Integer Dim mQuadrat As Integer Private Sub form_load() mZahl = 1 Do While mZahl <= 10 mQuadrat = mZahl * mZahl lfListe.AddItem (mQuadrat) mZahl = mZahl + 1 Loop End Sub