LCTHW ex 2ish
This commit is contained in:
parent
e28293e5bd
commit
0fd7b5873d
1
lcthw/ex2/.gitignore
vendored
Normal file
1
lcthw/ex2/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
ex1
|
4
lcthw/ex2/Makefile
Normal file
4
lcthw/ex2/Makefile
Normal file
@ -0,0 +1,4 @@
|
||||
CFLAGS=-Wall -g
|
||||
|
||||
clean:
|
||||
rm -f ex1
|
12
lcthw/ex2/ex1.c
Normal file
12
lcthw/ex2/ex1.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user