Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need to create a multipication table that displays the numbers 1 through 8 in

ID: 440688 • Letter: I

Question

I need to create a multipication table that displays the numbers 1 through 8 in the first column, the second and subsequent columns should contain the result of multiplying the number in the first column by the numbers 2 through 7. I can only get it to display the total result of 63, I can't figure out how to get it to display the entire table. This is what I have so far:

Dim answer As Integer

Dim MaxNum As Integer = 9

Dim MinNum As Integer = 7

Dim x As Integer, y As Integer

For y = 1 To MaxNum

For x = 1 To MinNum

answer = x * y

tableLabel.Text = answer.ToString

Next x

tableLabel.Text = answer.ToString

Next y

Explanation / Answer

iProduct = 1; int iFactor = Convert::ToInt32(numberTextBox->Text); String ^strFormat = ""; for (int i = 1; i < 10; i++) { strFormat += Text->Format("{0} * {1} = {2} ", iFactor, i, i * iFactor); } this->tableLabel->Text = strFormat; This is VB code. It goes into the click event of the button , as well Dim strFormat As String Dim iFactor As Int32 Dim i As Integer Dim iProduct As Int32 iFactor = CInt(Me.numberTextbox.Text) strFormat = "" For i = 1 To 9 iProduct = iFactor * i strFormat += Me.numberTextbox.Text + CStr(i) + CStr(iProduct) + vbLf Next Me.tableLabel.text = strFormat
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote