Public Class Form1
Dim a, i As Integer
Dim carpim As Double
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
a = InputBox("Değer = ", "Değer Giriniz ")
carpim = 1
For i = 1 To a
carpim = carpim * i
Next
Label1.Text = "Sonuç = " & carpim
End Sub
End Class
Hiç yorum yok:
Yorum Gönder