Need help for this program..pls

Status
Not open for further replies.
A

arunsmartkid

Guest
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

Commander in Chief
Pyramid Programs:
*www.thinkdigit.com/forum/showthread.php?t=83442

General Homework Cheating:
*www.thinkdigit.com/forum/showthread.php?t=67133
 

ilugd

Beware of the innocent
#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.
 
Status
Not open for further replies.
Top Bottom