2d shapes ...need help

NEED HELP HERE I NEED TO MAKE A 2D SHAPE OF block..
plz help ......:)





void n1(int x)
{
for (int i=0;i<x;i++)
{
cout<<"*";
}
cout<<endl;
}



void n2 (int x)
{
for (int i=0;i<x;i++);
{
if (int i == 0||i=x+1);
cout<<"*";
else
cout<<"";
}
cout<<endl;
}
Okay, you have functions to draw the top/bottom and sides.
All you need now is a main function that calls n1 and n2.

PLEASE USE CODE TAGS (the <> formatting button) when posting code. It makes it easier to help you.
Last edited on
Topic archived. No new replies allowed.