To print decreasing the stars
#include"stdio.h"
#include"conio.h"
void main()
{
int i,j;
clrscr();
for(i=5;i<6;i--)
{
for(j=0;j<=i;j++)
{
printf(" * ");
}
printf("\n");
}
getch();
}
Output will be
*****
****
***
**
*
Google Ads
Friday, May 29, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment