aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista2
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
commitc5fcf7179a83ef65c86c6a4a390029149e518649 (patch)
treed29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /Semestr 4/ask/lista2
parentf8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff)
Duzy commit ze smieciami
Diffstat (limited to 'Semestr 4/ask/lista2')
-rw-r--r--Semestr 4/ask/lista2/ask21_lista_2.pdfbin137597 -> 0 bytes
-rw-r--r--Semestr 4/ask/lista2/pom.c38
2 files changed, 0 insertions, 38 deletions
diff --git a/Semestr 4/ask/lista2/ask21_lista_2.pdf b/Semestr 4/ask/lista2/ask21_lista_2.pdf
deleted file mode 100644
index e6df9d7..0000000
--- a/Semestr 4/ask/lista2/ask21_lista_2.pdf
+++ /dev/null
Binary files differ
diff --git a/Semestr 4/ask/lista2/pom.c b/Semestr 4/ask/lista2/pom.c
deleted file mode 100644
index 87d542d..0000000
--- a/Semestr 4/ask/lista2/pom.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <stdint.h>
-#include <stdio.h>
-#include <limits.h>
-
-char* utb(uint32_t x) {
- static char rep[36];
- int cnt = 34;
- for (int i = 0; i < 32; i += 1) {
- if (i > 0 && i % 8 == 0) {
- rep[cnt] = ' ';
- cnt -= 1;
- }
- rep[cnt] = (x & 1) + '0';
- cnt -= 1;
- x >>= 1;
- }
- rep[35] = '\0';
- return rep;
-}
-
-void pb(uint32_t x) {
- printf("%s : %d\n", utb(x), x);
-}
-
-// int main() {
-// /* Zadanie 1 */
-
-// int32_t x;
-// x = (1<<31);
-// printf("%d, %d, %d %d\n", x, (x > 0), x-1, (x - 1 < 0));
-// }
-
-int main() {
- /* Zadanie 1 */
- int32_t x;
- scanf("%d", &x);
- printf("%d %d\n", x*x, INT_MIN);
-} \ No newline at end of file