Program 271: Program to print Reverse 'V' Symbol Pattern
//Coming Soon
Output:
#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: