bsc

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

root / semester_1 / tuition-c / P045.c

P045.c (382B)


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