|
-
March 23rd, 2010, 06:25 PM
#1
Outputing a square.
so my only question is how to make my output screen like this:
****
****
****
****
instead of this:
*
*
*
*
Heres the code: I jus basically need the answer, i can figure it out from the code you use. THX
Also this is a function im calling, not the entire program.
void display()
{
char ch;
int i, j, side;
cout<<"Enter character and side"<<endl;
cin>>ch>>side;
cout<<endl;
for(int i=0; i<side/2; i++)
{
for(int j=0; j<side/2; j++)
{
cout<<ch<<endl;
}
}
}
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
|