width.c 227 B

123456789101112
  1. /* width.c -- field widths */
  2. #include <stdio.h>
  3. #define PAGES 959
  4. int main(void)
  5. {
  6. printf("*%d*\n", PAGES);
  7. printf("*%2d*\n", PAGES);
  8. printf("*%10d*\n", PAGES);
  9. printf("*%-10d*\n", PAGES);
  10. return 0;
  11. }