Hello friends today i'sharing an interesting program with all of you, i'm sure that you really enjoy it because it is very simple and here i'm using simple concepts of c language.
#include<conio.h>
int main()
{
int i,j,k,l;
clrscr();
printf("\n HERE IS YOUR PATTERN:\n\n\n");
printf("\t\t");
for(i=1;i<=11;i++)
printf("7");
printf("\n");
l=9;
for(i=1;i<=10;i++)
{
printf("\t\t");
for(k=1;k<=l;k++)
printf(" ");
printf("7");
printf("\n");
l--;
}
getch();
return(0);
}
77777777777 7 7 7 7 7 7 7 7 7 7#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,k,l;
clrscr();
printf("\n HERE IS YOUR PATTERN:\n\n\n");
printf("\t\t");
for(i=1;i<=11;i++)
printf("7");
printf("\n");
l=9;
for(i=1;i<=10;i++)
{
printf("\t\t");
for(k=1;k<=l;k++)
printf(" ");
printf("7");
printf("\n");
l--;
}
getch();
return(0);
}
Thanks Friends......
No comments:
Post a Comment
Please Give Me Your Views