From 6a0e1ba5e6731e0682448f9b62b8e37404273819 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 4 Sep 2011 22:33:10 -0400 Subject: [PATCH] done up to chapter 8 --- .gitignore | 1 + Makefile | 2 +- ex5.c | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 ex5.c diff --git a/.gitignore b/.gitignore index da2db83..aaabdc6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ ex1 ex3 ex4 +ex5 diff --git a/Makefile b/Makefile index e390978..74a0619 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CFLAGS=-Wall -g -EXERCISES = ex1 ex3 ex4 +EXERCISES = ex1 ex3 ex4 ex5 all: $(EXERCISES) diff --git a/ex5.c b/ex5.c new file mode 100644 index 0000000..ac12e73 --- /dev/null +++ b/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; +}