Oct 2, 2012 at 4:52pm UTC
hey guys, i'm trying to make a axe using '*' im not sure how to do it.. can someone help me please.
Last edited on Oct 18, 2012 at 3:38pm UTC
Oct 2, 2012 at 5:15pm UTC
What? Can you be more specific?
Oct 2, 2012 at 5:29pm UTC
*******
********
*********
********
*******
***
***
***
***
***
***
***
***
Alas, I'm not an artist.
Oct 9, 2012 at 9:00pm UTC
that messed up the image but its basically a axe made with stars. Your using loops and stuff, a user enters an integer and it makes it that wide and long
Oct 9, 2012 at 9:08pm UTC
heres the sides for the axe
int n, c, k;
printf("Enter number of rows: ");
scanf("%d",&n);
for ( c = 1 ; c <= n ; c++)
{
for ( k = 1 ; k <= c ; k++ )
printf("*");
printf("\n");
}
for ( c = n - 2 ; c >= 0 ; c-- )
{
for ( k = c ; k >= 0 ; k-- )
printf("*");
printf("\n");
}
and than it needs a handle in the middle
Oct 11, 2012 at 6:27pm UTC
please help me make the axe
Oct 18, 2012 at 3:27pm UTC
that triangle is what on both sides of the handle
Thats the handle. Than the triangle above goes on both sides of the triangle but flipped on 1 side
**
**
**
**
**
**
**
**
**
Oct 18, 2012 at 3:32pm UTC
The user enters an integer and the triangles become that big. The axe handle is always going to be 10 rows long.