编码帮助 [英] Help with coding

查看:65
本文介绍了编码帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

This program should use two for loops to display a table consisting of four rows and two columns. The first column should contain the numbers 10, 12, 14 and 16. The second and subsequent columns should contain the result of multiplying the number in the first column by the numbers 2 through 5. For example the first two rows of the table should look like this:

10 20 30 40 50
12 24 36 48 60

10 20 30 40 50
12 24 36 48 60

Public Class MainForm
Private Sub displayButton_Click(sender As Object, e As EventArgs) Handles displayButton.Click
Dim Product As Integer
For i As Integer = 10 To 16

tableLabel.Text = tableLabel.Text & ControlChars.NewLine & i.ToString
For j As Integer = 2 To 5
Product = i * j
tableLabel.Text = tableLabel.Text & "" & Product

Next j
Next i

End Sub

Private Sub exitButton_Click(sender As Object, e As EventArgs) Handles exitButton.Click
Me.Close()
End Sub
End Class




推荐答案

请更改您的文章以将代码放入代码部分.

Please alter your post to place code into code sections.

此外,一次发布一个主题/问题,获取解决方案,然后在新主题中发起另一个问题.

Also, post one thread/question at a time, get a solution then start another question in a new thread.


这篇关于编码帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆