ascii-pylon.c 502 B

12345678910111213141516171819
  1. #include <stdio.h>
  2. int main() {
  3. int start = 32;
  4. int even = 32;
  5. int spaces = 49;
  6. while (even < 127) {
  7. for (int i = 0; i < spaces; ++i) printf(" ");
  8. for (int i = start; i < even; ++i) printf("%c", i);
  9. printf("%c", even);
  10. for (int i = even - 1; i >= start; --i) printf("%c", i);
  11. printf("\n");
  12. start++;
  13. even += 2;
  14. spaces--;
  15. }
  16. }