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