DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Anyone how tio do this ???

  1. #1
    Join Date
    Feb 2006
    Posts
    2

    Anyone how tio do this ???

    Write the program that will make square of stars (*) depending of inout number.

    for example:
    INPUT ONE NUMBER: 5
    *****
    *****
    *****
    *****
    *****

  2. #2
    Join Date
    Feb 2006
    Posts
    2
    anyone knows, please help me, i really need it

  3. #3
    Join Date
    Feb 2006
    Posts
    25

    Post

    you mean somthing like this...

    Code:
    int main()
    {
        int i;
        cin >> i;
    
        for(int x = 0; x < i; x++)
        {
    	    for(int y = 0; y < i; y++)
    		    cout << '*';
    	    cout << endl;
        }
    
        return 0;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center