bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_1 / tuition-c / APC-PRAC-028.c

APC-PRAC-028.c (658B)


      1 /*
      2 Pattern:
      3 	1
      4 	2       3
      5 	4       5       6
      6 	7       8       9       10
      7 	11      12      13      14      15
      8 */
      9 /* Author = Amit Dutta, Date - 13th November, 2025 */
     10 // File Name - amit1311202505.c (LAB), APC-PRAC-028.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, temp = 1;
     19 	printf("Enter the n : ");
     20 	scanf("%d", &n);
     21 	for(i = 1; i <= n; i++) {
     22 		for(j = 1; j <= i; j++) {
     23 			printf("%d\t", temp);
     24 			temp++;
     25 		}
     26 		printf("\n");
     27 	}
     28 	return 0;
     29 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror