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.  
  8. void starbar(void);
  9.  
  10. int main(void){
  11. starbar();
  12. printf("%s\n",NAME);
  13. printf("%s\n",ADDRESS);
  14. printf("%s\n",PLACE);
  15. starbar();
  16.  
  17. return 0;
  18. }
  19. void starbar(void)
  20. {
  21.  
  22. int count;
  23. for(count=1;count<=WIDTH;count++);
  24. putchar('*');
  25. putchar('\n');
  26.  
  27. }
  28.  
  29.  
Success #stdin #stdout 0.01s 5284KB
stdin
220626
0
stdout
*
GIGATHINK, INC.
101 Megabuck PLaza
Megapolis,CA 94904
*