fork download
  1. #include <stdio.h>
  2. #define NAME "GIGATHINK, INC."
  3. #define ADDRESS "101 Megabuck Plaza"
  4. #define PLACE "Megapolis, CA 94904"
  5. #define WIDTH 40
  6.  
  7. void starbar(void);
  8.  
  9. int main(void) {
  10. starbar();
  11. printf("%s\n", NAME);
  12. printf("%s\n", ADDRESS);
  13. printf("%s\n", PLACE);
  14. starbar();
  15. return 0;
  16. }
  17. void starbar(void)
  18. {
  19. int count;
  20. for (count = 1; count <= WIDTH; count++)
  21. putchar('*');
  22. putchar('\n');
  23. }
Success #stdin #stdout 0.01s 5280KB
stdin
100
stdout
****************************************
GIGATHINK, INC.
101 Megabuck Plaza
Megapolis, CA 94904
****************************************