This commit is contained in:
2025-02-09 09:16:37 +03:00
parent 24d05e18d6
commit 9e90bec9f7
7 changed files with 190 additions and 1 deletions

View File

@ -0,0 +1,20 @@
#include <stdio.h>
int main(void) {
for (int i = 0; i < 257; i++) {
int t = i;
int binary = 0;
int mult = 1;
while (t > 0) {
binary += (t % 2) * mult;
t /= 2;
mult *= 10;
}
printf("Int: %d, Bin: %d, Octal: %o, Hex: %X\n", i, binary, i, i);
}
return 0;
}