Program to Print Pyramin of asterik / Star.


#include
#include
void main(){
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf("\n");
}
getch();
}

3 comments:

  1. this is not pyramid of numbers's program

    ReplyDelete
  2. what to do if a want blink that star without using graphic.h functions

    ReplyDelete
  3. what to do for printing a program like this
    *
    ***
    *****
    *******

    ReplyDelete