diff options
Diffstat (limited to 'org/c/ex_01.org')
-rw-r--r-- | org/c/ex_01.org | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/org/c/ex_01.org b/org/c/ex_01.org new file mode 100644 index 0000000..d479a84 --- /dev/null +++ b/org/c/ex_01.org @@ -0,0 +1,20 @@ +* Exercise 1. + + +#+BEGIN_SRC C + #include <stdio.h> + + int main(int argc, char *argv[]) + { + int distance = 100; + + printf("you are %d miles away.\n", distance); + + return 0; + } +#+END_SRC + +#+RESULTS: +: you are 100 miles away. + +Big notable bits from this are the ~#include~. |