LCTHW ex 2ish

This commit is contained in:
Dan Buch 2024-04-15 15:16:14 -04:00
parent e28293e5bd
commit 0fd7b5873d
Signed by: meatballhat
GPG Key ID: A12F782281063434
3 changed files with 17 additions and 0 deletions

1
lcthw/ex2/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
ex1

4
lcthw/ex2/Makefile Normal file
View File

@ -0,0 +1,4 @@
CFLAGS=-Wall -g
clean:
rm -f ex1

12
lcthw/ex2/ex1.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
/* This is a comment. */
int main(int argc, char *argv[])
{
int distance = 100;
// this is also a comment
printf("You are %d miles away.\n", distance);
return 0;
}