Program to print mirrored parallelogram star pattern
********
********
********
********
********
********
********
********
********
C Programming Language Loop control in C Language (Article) Loop control in C Language (Program)
3352Program:
/* * C program to print mirrored parallelogram star pattern series */ #include int main() { int i, j, M, N; /* Input number of rows and columns */ printf("Enter rows: "); scanf("%d", &M); printf("Enter columns: "); scanf("%d", &N); for(i=1; i<=M; i++) { /* Print trailing spaces */ for(j=1; j
Output:
Enter rows: 6 Enter columns: 7 ******* ******* ******* ******* ******* ******* Press any key to continue . . .
Explanation:
Logic to print mirrored parallelogram star pattern
******************** ******************** ******************** ******************** ********************
Logic to print mirrored parallelogram star pattern is same as of mirrored rhombus star pattern. The only change we need to make is we need to iterate though M rows and <var">N columns (where M is the total number of rows to print and N is total number of columns to print).
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.