-->

Header Ads

Pyramid Program 9

C Program:


#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,k;

clrscr();

for(a=5;a>0;a--)

{

for(b=5;b>a;b--)

{

printf(" ");

}

for(b=0;b<a;b++)

{

printf("* ");

}

printf("\n");

}

getch();

}


Output of c program:

No comments

Powered by Blogger.