ex4
This commit is contained in:
parent
3cdcf6c30f
commit
23a5e0903b
1
lcthw-remnants-2/.gitignore
vendored
1
lcthw-remnants-2/.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
ex1
|
ex1
|
||||||
ex3
|
ex3
|
||||||
|
ex4
|
||||||
|
@ -3,4 +3,4 @@ FROM ubuntu:xenial
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt-get update -yq
|
RUN apt-get update -yq
|
||||||
RUN apt-get install -yq build-essential git man
|
RUN apt-get install -yq build-essential git man curl
|
||||||
|
14
lcthw-remnants-2/ex4.c
Normal file
14
lcthw-remnants-2/ex4.c
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user