Advertisement
Guest User

Untitled

a guest
May 30th, 2016
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main (void)
  5. {
  6.     for (int i = 16, j, k; j = sqrt(i), k = (j * j == i - 1), i > 0; i--)
  7.         printf("%2d%c%*.s", i, k ? '\n' : ' ', k ? 12 - 3 * j : 0);
  8.  
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement