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