summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/03_3.c
blob: e97347e0fffd397ae8a4e86a220279d9a144acd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

int term;       /* term used in two expressions */
main()
{

    term = 3 * 5;
    (void)printf("Twice %d is %d\n", term, 2*term);
    (void)printf("Three time %d is %d\n", term, 3*term);
    return (0);
}