bsc

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

P046.c (518B)


      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.
      8     Pattern :
      9     1
     10     2   1
     11     3   2   1
     12     4   3   2   1
     13     5   4   3   2   1
     14 */
     15 
     16 #include <stdio.h>
     17 
     18 int main()
     19 {
     20     int i, j, n;
     21     printf("Enter n : ");
     22     scanf("%d", &n);
     23     for (i = 1; i <= n; i++)
     24     {
     25         for (j = i; j >= 1; j--)
     26         {
     27             printf("%d\t", j);
     28         }
     29         printf("\n");
     30     }
     31     return 0;
     32 }
© 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