APC-PRAC-026.c (604B)
1 /* 2 Pattern: 3 5 4 5 4 5 5 4 3 6 5 4 3 2 7 5 4 3 2 1 8 */ 9 /* Author = Amit Dutta, Date - 13th November, 2025 */ 10 // File Name - amit1311202503.c (LAB), APC-PRAC-026.c (Local) 11 12 // This code has not been compiled. 13 // If you find any issues, please create a new issue on GitHub regarding them. 14 // Go to this link to create a new issue: https://github.com/notamitgamer/bsc/issues 15 16 #include<stdio.h> 17 int main() { 18 int n, i, j; 19 printf("Enter the n : "); 20 scanf("%d", &n); 21 for(i = n; i >= 1; i--) { 22 for(j = n; j >= i; j--) { 23 printf("%d ", j); 24 } 25 printf("\n"); 26 } 27 return 0; 28 }