aboutsummaryrefslogtreecommitdiff
path: root/src/double.mil
blob: aea5387842c78dd4cfce93ef60a93bee35433aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* double.mil --- read double write                            -*- MiLan -*- */
/* function declarations */
FUNC double (1) RETURNS;

/* program */
BEGIN
        LOCALS n;
        n := READ;
        n := double (n);
        WRITE (n)
END

/* function definitions */
FUNC double (n) RETURNS
BEGIN
        RETURN (n + n)
END
/* double.mil ends here */