/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* Make this pattern for input n. Pattern : 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 */ #include int main() { int i, j, n; printf("Enter n : "); scanf("%d", &n); for (i = 1; i <= n; i++) { for (j = i; j >= 1; j--) { printf("%d\t", j); } printf("\n"); } return 0; }