Programming Languages

PROGRAM TO PRINT HELLO HELLO HELLO BYE BYE BYE

/* PROGRAM TO PRINT
HELLO HELLO HELLO
BYE BYE BYE
*/

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

void main()
{
int i,j,n;
clrscr();
printf(“ENTER HOW MANY TIMES YOU WANTS TO PRINT THIS PATTERN :”);
scanf(“%d”,&n);
printf(“\n\n”);
for(i=1;i<=n;i++)
{
printf(“HELLO “);
}
printf(“\n”);
for(j=1;j<=n;j++)
{
printf(“BYE “);
}
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.