[C] homework1.c -- This is how the code for the first →→→→→进入此内容的聊天室

来自 Emerald Madrill, 2022-06-20, 写在 C, 查看 68 次.
URL http://www.code666.cn/view/bbac9b10
  1. /* homework1.c -- This is how the code for the first homework
  2.  *                appears when we have a single block letter.
  3.  *                In our Unix system you can compile, link,
  4.  *                load, and run this program with the commands
  5.  *                    % cc homework1.c
  6.  *                    % a.out
  7.  */
  8.  
  9. #include <stdio.h>
  10.  
  11. void blockg(void);   /*Prototype for blockg function */
  12.  
  13. int main (void) {
  14.    printf("\n");
  15.    blockg();
  16.    printf("\n");
  17. }
  18.  
  19. /* Print out the Block letter g */
  20. void blockg(void) {
  21.   printf("gggggg\n");
  22.   printf("g    g\n");
  23.   printf("g\n");
  24.   printf("g  ggg\n");
  25.   printf("g    g\n");
  26.   printf("gggggg\n");
  27. }
  28.  
  29. /* It prints out:
  30.  
  31. gggggg
  32. g    g
  33. g
  34. g  ggg
  35. g    g
  36. gggggg
  37.  
  38. */

回复 "homework1.c -- This is how the code for the first "

这儿你可以回复上面这条便签

captcha