会用代码敲九九乘法表输出,但不知道如何在使用visual studio下实现窗体的九九乘法表
3条回答 默认 最新
- weixin_53515141 2021-07-05 16:08关注
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}private void label1_Click(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { label1.Text = "九九乘法表:\n\n"; for (int i = 1; i < 10; i++) { for (int j = 1; j <= i; j++) { label1.Text += (j + "*" + i + "=" + i * j + " "); } label1.Text += "\n"; } } }
}
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥20 西门子S7-Graph,S7-300
- ¥50 用易语言http 访问不了网页
- ¥50 safari浏览器fetch提交数据后数据丢失问题
- ¥15 matlab不知道怎么改,求解答!!
- ¥15 永磁直线电机的电流环pi调不出来
- ¥15 用stata实现聚类的代码
- ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
- ¥20 docker里部署springboot项目,访问不到扬声器
- ¥15 netty整合springboot之后自动重连失效
- ¥15 悬赏!微信开发者工具报错,求帮改