diff options
Diffstat (limited to 'reference/C/CONTRIB/OR_PRACTICAL_C/03_2.c')
-rw-r--r-- | reference/C/CONTRIB/OR_PRACTICAL_C/03_2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_PRACTICAL_C/03_2.c b/reference/C/CONTRIB/OR_PRACTICAL_C/03_2.c new file mode 100644 index 0000000..915998b --- /dev/null +++ b/reference/C/CONTRIB/OR_PRACTICAL_C/03_2.c @@ -0,0 +1,13 @@ +#include <stdio.h> + +int term; /* term used in two expressions */ +int term_2; /* twice term */ +int term_3; /* three times term */ +main() +{ + + term = 3 * 5; + term_2 = 2 * term; + term_3 = 3 * term; + return (0); +} |