diff --git a/lcthw-remnants-2/.gitignore b/lcthw-remnants-2/.gitignore index da2db83..aaabdc6 100644 --- a/lcthw-remnants-2/.gitignore +++ b/lcthw-remnants-2/.gitignore @@ -1,3 +1,4 @@ ex1 ex3 ex4 +ex5 diff --git a/lcthw-remnants-2/ex5.c b/lcthw-remnants-2/ex5.c new file mode 100644 index 0000000..0d3c042 --- /dev/null +++ b/lcthw-remnants-2/ex5.c @@ -0,0 +1,12 @@ +#include + +/* 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; +}