Contact Learn C
Copy Program Share Program

Program 270: Program to print Reverse V Alphabet Pattern

Program 270: Program to print Reverse V Alphabet Pattern

#include<stdio.h>
main()
{
    int i,j,k=0,space=1,rows;
    printf("Enter number of rows\n");
    scanf("%d",&rows);
    for(i=rows;i>=1;i--)
    {
     for(j=1;j<=i;j++)
     {
      printf("%c",j+64);      
     }   
  if(i!=rows)
  {
   for(k=1;k<=space;k++)
   {
    printf(" ");
   }
   space+=2;
  }
     for(j=i;j>=1;j--)
     {
      if(j!=rows)
      printf("%c",j+64);
     }
     
     printf("\n");
     
    }
    printf("\n");
}
Explanation:

//Coming Soon

Output:
Program to print Reverse V Alphabet Pattern




Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide