All public logs

Jump to navigation Jump to search

Combined display of all available logs of Eric & Company. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
  • 21:46, 9 March 2022 Eric talk contribs created page C Language Practice: Binary to Hexagonal Numbers (Created page with "== Convert Binary to Hexagonal == <syntaxhighlight lang="c" line style="border: 1px dashed red;"> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int btod(char *b) { int i; int decimal = 0; int place = 0, temp = 0; for(i = strlen(b) - 1; i >= 0; i--) { if ((b[i] == '0') || (b[i] == '1')) { temp = b[i] - '0'; } else { printf("error: not a valid binary numbe...")