制定从1到100的系列 [英] Develop a series from 1 to 100
本文介绍了制定从1到100的系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
如何在asp.net中开发从1到100的序列(使用c#代码)..任何人都可以帮助我?
hello,
how to develop series from 1 to 100 in asp.net(using c# code)..any one can help me??
推荐答案
尝试以下方法:
Try this one :
protected void Button1_Click(object sender, EventArgs e)
{
Label Label1 = new Label();
for (int i = 0; i < 100; i++)
{
Label1.Text = Label1.Text + i;
}
}
希望对您有帮助. :)
I hope it will help you. :)
int x;
for (x = 1; x <= 100; x++)
Console.WriteLine("x");
希望对您有帮助....
hope this helps u....
这篇关于制定从1到100的系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文