/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* Pattern: 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 */ /* Author = Amit Dutta, Date - 13th November, 2025 */ // File Name - amit1311202506.c (LAB), APC-PRAC-029.c (Local) // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. // Go to this link to create a new issue: https://github.com/notamitgamer/bsc/issues #include int main() { int n, i, j; printf("Enter the n : "); scanf("%d", &n); for(i = 1; i <= n; i++) { for(j = 1; j <= i; j++) { if(j % 2 == 0) printf("0 "); else printf("1 "); } printf("\n"); } return 0; }