diff --git a/lcthw-remnants-2/.gitignore b/lcthw-remnants-2/.gitignore index 6d21d2b..da2db83 100644 --- a/lcthw-remnants-2/.gitignore +++ b/lcthw-remnants-2/.gitignore @@ -1,2 +1,3 @@ ex1 ex3 +ex4 diff --git a/lcthw-remnants-2/Dockerfile b/lcthw-remnants-2/Dockerfile index e039450..6a227e0 100644 --- a/lcthw-remnants-2/Dockerfile +++ b/lcthw-remnants-2/Dockerfile @@ -3,4 +3,4 @@ FROM ubuntu:xenial ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -yq -RUN apt-get install -yq build-essential git man +RUN apt-get install -yq build-essential git man curl diff --git a/lcthw-remnants-2/ex4.c b/lcthw-remnants-2/ex4.c new file mode 100644 index 0000000..7e49361 --- /dev/null +++ b/lcthw-remnants-2/ex4.c @@ -0,0 +1,14 @@ +#include + +/* Warning: This program is wrong on purpose. */ + +int main() +{ + int age = 10; + int height; + + printf("I am %d years old.\n"); + printf("I am %d inches tall.\n", height); + + return 0; +}