wap to print the following pattern.

wap to print the following pattern in c----

  


 #include<stdio.h>
void main()
{
int i,j,k,f=1;
for(i=65;i<=71;i++)
printf("%c",i);
for(i=70;i>=65;i--)
printf("%c",i);
printf("\n");
for(i=1;i<=6;i++)
{
  {
   for(j=65;j<=71-i;j++)
   printf("%c",j);
   }
     {
      for(k=1;k<=f;k++)
       printf(" ");
       f=f+2;
      for(k=71-i;k>=65;k--)
      printf("%c",k);
     }
 printf("\n");
}
}




NOTE-  i have compiled this program in codeblocks if u do it in turbo c++  use  conio.h  header file in the beginning  and getch()  a the  last.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete

Implemet Stack in python

  class Stack : def __init__ ( self , data ): self . stack = [] if ( data ): self . stack . append ( da...