pc002.c (529B)
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 /* Pattern : 8 1 2 3 4 5 9 6 7 8 9 10 10 11 12 11 13 14 12 15 13 for n = 5 14 */ 15 16 17 #include <stdio.h> 18 int main() 19 { 20 int i, j, n, temp = 1; 21 printf("Enter n : "); 22 scanf("%d", &n); 23 for (i = n; i >= 1; i--) 24 { 25 for (j = 1; j <= i; j++) 26 { 27 printf("%d\t", temp); 28 temp++; 29 } 30 printf("\n"); 31 } 32 return 0; 33 }