Programming Languages

PROGRAM TO PRINT THE PATTERN * * * * * * * * * * * * * *

/* PROGRAM TO PRINT THE PATTERN
* * * * * * * * * * * * * *
*/

#include<stdio.h>
#include<conio.h>

void main()
{
int i,n;
clrscr();
printf(“\n\nENTER HOW MANY STARS YOU WANT TO PRINT :”);
scanf(“%d”,&n);
printf(“\n\n”);
for(i=1;i<=n;i++)
{
printf(” *”);
}
getch();
}

ANIL VERMA
Hello Everyone, Welcome to A. V. Powertech.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.