struggling to do this simple program:
wanting to find out the sum of the multiplication,
Example: input 5 in textbox it should compute like this 1 * 2 * 3 * 4 * 5 = 120
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim isconverted As Boolean = False Dim b As Integer Dim c As Decimal isconverted = Integer.TryParse(TextBox1.Text, b) c = summation(b) Label1.Text = c End Sub Public Function summation(ByVal N As Integer) As Decimal [B]nOT SURE WHAT TO PUT HERE??[/B] End Function
THANK YOU


Sign In
Create Account

Back to top









