How to draw a square with "0"
To draw a square with "0".
#include
#include
void drawing( int, int);
int main()
{
drawing( 5, 10 );
return 0;
}
void drawing( int length, int column )
{
int w;
for ( ; length > 0; length--)
{
for (w = column; w > 0; w--)
cout<<"0";
printf("\n");
}
}
Result :
No comments:
Post a Comment