Advertisement
Guest User

Untitled

a guest
May 30th, 2016
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (void)
  4. {
  5.     for (int i = 4; i > 0; i--)
  6.     {
  7.         printf("%*s", 3 * (4 - i), "");
  8.  
  9.         for (int j = i * i; j > (i - 1) * (i - 1); j--)
  10.         {
  11.             printf("%2d ", j);
  12.         }
  13.  
  14.         puts("");
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement