Pyramid Problem No. 67
Q.67 Write a C program to print the following star triangle structure:
********* ******* ***** *** *
Solving in C:#include <stdio.h> int main(){ int row,col; for(row=5; row>=1; row--){ for(col=2*row-1;col>=1; col--) printf("*"); printf("\n"); } return 0; }
Comments
Post a Comment