up to chapter 7
This commit is contained in:
parent
a1902d9af4
commit
357323bdc8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
ex1
|
||||
ex3
|
||||
ex4
|
||||
|
6
Makefile
6
Makefile
@ -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
12
ex3.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user