Well, i cant figure how print to the spaces before the *, this is how it is suppose to look:
*
***
*****
*******
EDIT: dunno how to get it to work but it should be a pascal triangle
and this is what i get
*
***
*****
*******
heres the code:
#include<stdio.h>
void main ()
{
int a, b, c;
printf ("Enter the number: ");
scanf ("%d", &a);
for (b=1; b<=a; b++)
{
for (c=1; c<=(b*2-1); c++)
{
printf ("*");
}
printf ("\n");
}
return;
}