From ef271c59c5e9c3450b239a520250b6d6046ed0a5 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 12 Apr 2016 09:12:41 -0400 Subject: [PATCH] ex5 --- lcthw-remnants-2/.gitignore | 1 + lcthw-remnants-2/ex5.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 lcthw-remnants-2/ex5.c diff --git a/lcthw-remnants-2/.gitignore b/lcthw-remnants-2/.gitignore index da2db83..aaabdc6 100644 --- a/lcthw-remnants-2/.gitignore +++ b/lcthw-remnants-2/.gitignore @@ -1,3 +1,4 @@ ex1 ex3 ex4 +ex5 diff --git a/lcthw-remnants-2/ex5.c b/lcthw-remnants-2/ex5.c new file mode 100644 index 0000000..0d3c042 --- /dev/null +++ b/lcthw-remnants-2/ex5.c @@ -0,0 +1,12 @@ +#include + +/* This is a comment. */ +int main(int argc, char *argv[]) +{ + int distance = 100; + + // this is also a comment + printf("You are %d miles away.\n", distance); + + return 0; +}