|
-
November 19th, 2014, 01:40 PM
#1
Making a number pattern with a loop
I want to make a number pattern with a loop like this one:
Capture.PNG
I have now only this:
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string c = "";
for (int i = 1; i < 10; i++)
{
lbforloop.Items.Add(c + i++ + i.ToString());
c += " ";
}
}
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|