Advertisement
Realratnadwip

Inverse Number Pyramid

May 16th, 2025
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | Source Code | 0 0
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5.     int i, j, lim;
  6.     printf("Enter Limit: ");
  7.     scanf("%d",&lim);
  8.  
  9.     i = 1;
  10.     while (i <= lim)
  11.     {
  12.         j = lim;
  13.         while (j >= i)
  14.         {
  15.             printf("%d ",j);
  16.             j--;
  17.         }
  18.         printf("\n");
  19.         i++;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement