home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / f / funnel-x.zip / examples / ex04.fw < prev    next >
Text File  |  1992-05-27  |  433b  |  36 lines

  1. EX04: The same as EX03, but with the errors fixed.
  2.  
  3. @O@<ex04.out@>==@{@-
  4. @<Include Files@>
  5. @<Function@>
  6. @<Main Program@>
  7. @}
  8.  
  9. @$@<Main Program@>==@{@-
  10. main()
  11. {
  12.  doit();
  13. }
  14. @}
  15.  
  16. @$@<Function@>==@{@-
  17. void doit()
  18. {
  19.  int i;
  20.  for (i=0;i<10;i++)
  21.    {
  22.     @<Print@>
  23.     @<Print@>
  24.    }
  25. }@}
  26.  
  27. @$@<Print@>@M==@{@-
  28. printf("Hello World!");
  29. printf("\n");@}
  30.  
  31. @$@<Scan@>@Z==@{scanf@}
  32.  
  33. @$@<Include Files@>==@{@-
  34. #include <stdio.h>
  35. #include <stdlib.h>@}
  36.