Wednesday, February 13, 2013

C Program To create a STAR Design in Decreament Form

#include<stdio.h>
#include<conio.h>
void main ()
{
int i=0, j=0, pos;
clrscr ();
printf ("\n Enter Position No. of Rows");
scanf ("%d", &pos);
for (i=10; i>=0; i--)
{
printf ("\n");
for (j=i; j>=0; j--)
{
printf ("*");
}
}
getch ();
}


Follow us on Facebook

No comments:

Post a Comment