Programming Languages

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

/* 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(“+”);
}
}

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.