diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/dickimaw/src/thesis/listing-samples/sqrt.c')
-rw-r--r-- | Master/texmf-dist/doc/latex/dickimaw/src/thesis/listing-samples/sqrt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/dickimaw/src/thesis/listing-samples/sqrt.c b/Master/texmf-dist/doc/latex/dickimaw/src/thesis/listing-samples/sqrt.c new file mode 100644 index 00000000000..422d466557d --- /dev/null +++ b/Master/texmf-dist/doc/latex/dickimaw/src/thesis/listing-samples/sqrt.c @@ -0,0 +1,11 @@ +#include <stdio.h> /* needed for printf */ +#include <math.h> /* needed for sqrt */ + +int main() +{ + double x = sqrt(2.0); /* $x = \sqrt{2}$ */ + + printf("x = %f\n", x); + + return 1; +} |