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

Programming Languages

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

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

void pattern(int n);
void main()
{
int n;
clrscr();
printf(“\n\nENTER THE VALUE OF N :”);
scanf(“%d”,&n);
pattern(n);
getch();
}
void pattern(int n)
{
int i,j;
printf(“\n\n\t\t”);
for(i=1;i<=n;i++)
{
printf(“*”);
}
printf(“\n\n\t\t”);
for(j=1;j<=n;j++)
{
printf(“+”);
}
}

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.