CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2014
    Posts
    2

    Exclamation Making a number pattern with a loop

    I want to make a number pattern with a loop like this one:
    Name:  Capture.PNG
Views: 353
Size:  16.1 KB

    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 += " ";
    }
    }
    }

  2. #2
    Join Date
    Nov 2014
    Posts
    2

    Re: Making a number pattern with a loop

    No one can help me with this??

  3. #3
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Making a number pattern with a loop

    Well you did not tell us what kind of problem you are actually having.
    You also did not ask a question until the second post and that one is a simple yes or no.

    So yes someone can help you but you first need to let us know what problem you are having or ask a specific question. What you have posted looks more like an indirect request that someone do it for you
    Always use [code][/code] tags when posting code.

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
  •  





Click Here to Expand Forum to Full Width

Featured