Contact Learn C
Copy

Program 271: Program to print Reverse 'V' Symbol Pattern

Program 271: Program to print Reverse 'V' Symbol 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("*");      
     }   
  if(i!=rows)
  {
   for(k=1;k<=space;k++)
   {
    printf(" ");
   }
   space+=2;
  }
     for(j=i;j>=1;j--)
     {
      if(j!=rows)
      printf("*");
     }
     
     printf("\n");
     
    }
    printf("\n");
}
Explanation:

//Coming Soon

Output:
Program to print Reverse 'V' Symbol Pattern




Donate

Download App and Learn when ever you want

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