diff --git a/lcthw/ex2/Makefile b/lcthw/ex2/Makefile index 931a728..c5e5824 100644 --- a/lcthw/ex2/Makefile +++ b/lcthw/ex2/Makefile @@ -1,4 +1,9 @@ -CFLAGS=-Wall -g +CFLAGS ?= -Wall -g + +all: ex1 clean: rm -f ex1 + +test: + ./ex1 diff --git a/lcthw/ex3/.gitignore b/lcthw/ex3/.gitignore new file mode 100644 index 0000000..2ea718c --- /dev/null +++ b/lcthw/ex3/.gitignore @@ -0,0 +1 @@ +ex3 diff --git a/lcthw/ex3/ex3.c b/lcthw/ex3/ex3.c new file mode 100644 index 0000000..9a2f1e7 --- /dev/null +++ b/lcthw/ex3/ex3.c @@ -0,0 +1,12 @@ +#include + +int main(int argc, char *argv[]) +{ + int age = 10; + int height = 72; + + printf("I am %d years old.\n", age); + printf("I am %d inches tall.\n", height); + + return 0; +}