LCTHW ex3
This commit is contained in:
parent
0fd7b5873d
commit
a135c338ea
@ -1,4 +1,9 @@
|
|||||||
CFLAGS=-Wall -g
|
CFLAGS ?= -Wall -g
|
||||||
|
|
||||||
|
all: ex1
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ex1
|
rm -f ex1
|
||||||
|
|
||||||
|
test:
|
||||||
|
./ex1
|
||||||
|
1
lcthw/ex3/.gitignore
vendored
Normal file
1
lcthw/ex3/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
ex3
|
12
lcthw/ex3/ex3.c
Normal file
12
lcthw/ex3/ex3.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user