hello can you help me how can i print asterisk to form triangle like this
*
***
*****
*******
here is my code
int main()
{
for(i=0;i<10;i++)
for(j=0;j<i;j++)
{
printf("*");
}
printf("\n");
getch()
return 0;
}
please help me hoping for your positive responds...thank you in advance...