Debian Codegraph @

tests/ex04.fw

raw
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>@}