CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: nicola.s94

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,715

    Re: How to makes pattern with loops

    Nvm found it!

    int number= 4;
    String i = " ";

    int a = 0;
    for (i="*";i.length() <= number;i=i+"*")
    System.out.println(i);

    String j = " ";
  2. Replies
    1
    Views
    3,715

    How to makes pattern with loops

    Hey,

    I have this little excercice which i can not solve on my own pfff o.0

    i have to make this figure:
    when reading number given by the user (in this case 4), the program should return this...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured