DIGIT-ARC read-only archive · snapshot: July 23, 2026

Need help for this program..pls

4 posts · originally from https://geek.digit.in/community/threads/need-help-for-this-program-pls.87658/

A
arunsmartkid Original post #1
May 13, 2008 at 12:25 AM
I am basically studying C language and with my own logic I have developed more but I have problem with ths, can any one provide me a simple C program to get the output as follows :


*
**
***
****
*****​
QwertyManiac
May 13, 2008 at 12:29 AM
Pyramid Programs:
*www.thinkdigit.com/forum/showthread.php?t=83442

General Homework Cheating:
*www.thinkdigit.com/forum/showthread.php?t=67133
clmlbx
clmlbx #3
May 13, 2008 at 11:50 PM
^^fantastic titles
ilugd
ilugd #4
May 21, 2008 at 2:24 PM
#include "stdio.h"

int main()
{
int i,j, k;
j=10;
for (i=0; i<j; i++)
{
for (k=0; k<j-i; k++) printf(" ");
for (k=0; k<i*2+1; k++) printf("*");
printf("\n");
}
}

ha ha. programming in c after a looong time. had fun.