Write a program using Visual Basic to find out the factorial of given integerif the integeris N then factorial of N stands for 1×2×3×...×N.if the value of N...
Answers
Answered by
0
Private Sub Command1_Click()
Dim n As Integer
Dim fact As Integer
fact = 1
n = Val(Text1.Text)
For i = 1 To n
fact = fact * i
Next
MsgBox "factorial of " & n & " is = " & fact
End Sub
Dim n As Integer
Dim fact As Integer
fact = 1
n = Val(Text1.Text)
For i = 1 To n
fact = fact * i
Next
MsgBox "factorial of " & n & " is = " & fact
End Sub
Answered by
0
Private Sub Command1_Click()
Dim n As Integer
Dim fact As Integer
fact = 1
n = Val(Text1.Text)
For i = 1 To n
fact = fact * i
Next
MsgBox "factorial of " & n & " is = " & fact
End Sub
Dim n As Integer
Dim fact As Integer
fact = 1
n = Val(Text1.Text)
For i = 1 To n
fact = fact * i
Next
MsgBox "factorial of " & n & " is = " & fact
End Sub
Similar questions
Hindi,
7 months ago
Computer Science,
7 months ago
English,
7 months ago
Math,
1 year ago
Political Science,
1 year ago
English,
1 year ago
Science,
1 year ago