Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <stdio.h>
- int main (void)
- {
- for (int i = 16, j, k; j = sqrt(i), k = (j * j == i - 1), i > 0; i--)
- printf("%2d%c%*.s", i, k ? '\n' : ' ', k ? 12 - 3 * j : 0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement