APC-PRAC-031.c (796B)
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 6 7 8 9 11 10 11 12 12 13 14 13 15 14 */ 15 /* Author = Amit Dutta, Date - 13th November, 2025 */ 16 // File Name - amit1311202508.c (LAB), APC-PRAC-031.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, temp = 1; 25 printf("Enter the n : "); 26 scanf("%d", &n); 27 for(i = n; i >= 1; i--) { 28 for(j = 1; j <= i; j++) { 29 printf("%d\t", temp); 30 temp++; 31 } 32 printf("\n"); 33 } 34 return 0; 35 }