P048.c (579B)
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 /* Make this pattern for input n no of row. 8 Pattern : 9 1 10 2 3 11 4 5 6 12 7 8 9 10 13 11 12 13 14 15 14 */ 15 16 #include <stdio.h> 17 18 int main() 19 { 20 int i, j, n, temp = 1; 21 printf("Enter row number : "); 22 scanf("%d", &n); 23 for (i = 1; i <= n; 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 }