Search
for
while
do-while
break
1, -1, 1, -1, 1, -1, ...
~/ctu-fee/prp/lab03
unzip b0b36prp-hw01.zip
unzip b0b36prp-hw01.zip Archive: b0b36prp-hw01.zip creating: b0b36prp-hw01/ extracting: b0b36prp-hw01/generate_solutions.sh creating: b0b36prp-hw01/data/ extracting: b0b36prp-hw01/data/pub03.in extracting: b0b36prp-hw01/data/pub01.out extracting: b0b36prp-hw01/data/pub01.in extracting: b0b36prp-hw01/data/pub03.out extracting: b0b36prp-hw01/data/pub04.in extracting: b0b36prp-hw01/data/pub02.in extracting: b0b36prp-hw01/data/pub02.out extracting: b0b36prp-hw01/data/pub04.out extracting: b0b36prp-hw01/b0b36prp-hw01-genref-osx extracting: b0b36prp-hw01/b0b36prp-hw01-genref extracting: b0b36prp-hw01/main.c extracting: b0b36prp-hw01/Makefile
tree
tree b0b36prp-hw01 b0b36prp-hw01 ├── Makefile ├── b0b36prp-hw01-genref ├── b0b36prp-hw01-genref-osx ├── data │ ├── pub01.in │ ├── pub01.out │ ├── pub02.in │ ├── pub02.out │ ├── pub03.in │ ├── pub03.out │ ├── pub04.in │ └── pub04.out ├── generate_solutions.sh └── main.c 1 directory, 13 file
b0b36prp-hw01-genref
diff
vimdiff
hexdump
* Vypište:
* ** *** **** *****
***** **** *** ** *
putchar
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
0 11 22 33 44 55 66 77 88 99
9 18 27 36 45 54 63 72 81 90
0 9 11 18 22 27 33 36 44 45 54 55 63 66 72 77 81 88 90 99
printf()
v « 1
FALSE
TRUE
getchar
man getchar
EOF
100
0
clang main.c && echo 'a' | ./a.out 97 61 b01100001
cal
Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
September Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
September Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 October Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 November Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
static char *day_of_week[] = {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su" }; static char *name_of_month[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; static int days_in_month[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; static int first_day_in_september = 2; // 1. 9. 2021 is Wednesday static int first_day_in_year = 4; // 1. 1. 2021 is Friday
$$ \qquad\pi = 4 \sum_{k=0}^\infty\dfrac{(-1)^k}{2k+1} = \dfrac{4}{1}-\dfrac{4}{3}+\dfrac{4}{5}-\dfrac{4}{7}+\dfrac{4}{9}-\dfrac{4}{11}+\cdots $$