up to chapter 7

This commit is contained in:
Dan Buch 2011-09-04 22:18:49 -04:00
parent a1902d9af4
commit 357323bdc8
4 changed files with 30 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
ex1
ex3
ex4

View File

@ -1,11 +1,13 @@
CFLAGS=-Wall -g
EXERCISES = ex1 ex3 ex4
all: ex1
all: $(EXERCISES)
clean:
rm -f ex1
rm -f $(EXERCISES)
.PHONY: all clean

12
ex3.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main()
{
int age = 10;
int height = 72;
printf("I am %d years old.\n", age);
printf("I am %d inches tall.\n", height);
return 0;
}

12
ex4.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main()
{
int age = 10;
int height = 72;
printf("I am %d years old.\n", age);
printf("I am %d inches tall.\n", height);
return 0;
}