bsc

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

APC-PRAC-029.c (765B)


      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
     10 	1   0
     11 	1   0   1
     12 	1   0   1   0
     13 	1   0   1   0   1
     14 */
     15 /* Author = Amit Dutta, Date - 13th November, 2025 */
     16 // File Name - amit1311202506.c (LAB), APC-PRAC-029.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 = 1; j <= i; j++) {
     29 			if(j % 2 == 0) printf("0   ");
     30 			else printf("1   ");
     31 		}
     32 		printf("\n");
     33 	}
     34 	return 0;
     35 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror