LCTHW ex3

This commit is contained in:
Dan Buch 2024-04-15 15:22:58 -04:00
parent 0fd7b5873d
commit a135c338ea
Signed by: meatballhat
GPG Key ID: A12F782281063434
3 changed files with 19 additions and 1 deletions

View File

@ -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
View File

@ -0,0 +1 @@
ex3

12
lcthw/ex3/ex3.c Normal file
View 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;
}